help cmd
#5

PHP код:
CMD:placegate(playeridparams[])
{
        if(
PlayerInfo[playerid][Level] >= 4) return SendClientMessage(playerid, -1"You are not admin");
        if(
isnull(params)) return SendClientMessage(playerid, -1"Syntax: /placegate [password]");
        if(!
strval(params)) return SendClientMessage(playerid, -1"You need to input numbers.");
        if(
IsPlayerInAnyVehicle(playerid )) return SendClientMessage(playerid, -1"You need to exit your vehicle.");
        new 
Float:pPos[4];
        
GetPlayerPos(playeridpPos[0], pPos[1], pPos[2]);
        
GetPlayerFacingAngle(playeridpPos[3]);
        
CreateGate(playeridstrval(params), pPos[0], pPos[1], pPos[2], pPos[3]);
        
SendClientMessage(playerid, -1"You succesfully created a movable gate. Use /gopen or /gclose.");
        return 
1;

try this
Reply


Messages In This Thread
help cmd - by nbx2000 - 11.08.2018, 06:33
Re: help cmd - by Mike861 - 11.08.2018, 06:50
Re: help cmd - by nbx2000 - 11.08.2018, 07:03
Re: help cmd - by Variable™ - 11.08.2018, 07:16
Re: help cmd - by CaptainBoi - 11.08.2018, 07:19
Re: help cmd - by Sew_Sumi - 11.08.2018, 10:48
Re: help cmd - by Mike861 - 11.08.2018, 10:54
Re: help cmd - by nbx2000 - 12.08.2018, 06:56
Re: help cmd - by AlexMSK - 12.08.2018, 07:02

Forum Jump:


Users browsing this thread: 1 Guest(s)