Jump to content

Recommended Posts

Posted

cum pot transforma comanda asta:

if (strcmp("/deschidegate", cmdtext, true, 10) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(IsPlayerInRangeOfPoint(playerid,15, 1587.8665, -1637.9141, 14.8116))
		    {
		            MoveDynamicObject(poarta,1587.8665, -1637.9141, 9.7766, 5.0, 0.0000, 0.0000, 0.0000);
		            SetTimer("MoveInitialPoarta",5000,0);
		            SendClientMessage(playerid,-1,"Ai deschis poarta 5 secunde!");
		    }
		    else
		        return SendClientMessage(playerid,-1,"Nu esti langa poarta!");
		}
	        
		return 1;
	}

in zcmd gen cmd:deschidegate

Posted
CMD:deschidegate(playerid,params[])
{
	if(!IsPlayerConnected(playerid))
		return 1;

	if(!IsPlayerInRangeOfPoint(playerid,15, 1587.8665, -1637.9141, 14.8116))
		return SendClientMessage(playerid,-1,"Nu esti langa poarta!");

	MoveDynamicObject(poarta,1587.8665, -1637.9141, 9.7766, 5.0, 0.0000, 0.0000, 0.0000);
    SetTimer("MoveInitialPoarta",5000,0);
    SendClientMessage(playerid,-1,"Ai deschis poarta 5 secunde!");
	return 1;
}

 

  • Upvote 1
public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

CMD:deschidegate(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInRangeOfPoint(playerid,15, 1587.8665, -1637.9141, 14.8116))
        {
            MoveDynamicObject(poarta,1587.8665, -1637.9141, 9.7766, 5.0, 0.0000, 0.0000, 0.0000);
            SetTimer("MoveInitialPoarta",5000,0);
            SendClientMessage(playerid,-1,"Ai deschis poarta 5 secunde!");
        }
        else
        return SendClientMessage(playerid,-1,"Nu esti langa poarta!");
    }
    return 1;
}

  • Upvote 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.