Jump to content
Sign in to follow this  
Sebi wepos

Cum transform asta in zcmd

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.