Need Help In Scripting
#3

PHP код:
new sitting;

CMD:sit(playerid,params[])
{
    if(!
IsPlayerInRangeOfPoint(playerid15.0 , -1517.2539,743.3757,-10.9226  )) return SendClientMessage(playerid,0xFF0000AA,"*You must be in club to use this command.");
    if(
sitting != 0) return SendClientMessage(playerid,0xFF0000AA,"*Someone is already sat here.");
    
SetPlayerPos(playerid,-1517.2539,743.3757,-10.9226  );
    
SetPlayerFacingAngle(playerid180.0);
    
sitting++;
    
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,01,0,1);
    
SendClientMessage(playerid0xFFFF00C8"You are now sitting and enjoy.Type  /standup for standing");
    return 
1;
}

// In /standup ...
sitting--; 
Reply


Messages In This Thread
Need Help In Scripting - by CarRamper - 05.06.2016, 16:26
Re: Need Help In Scripting - by justjamie - 05.06.2016, 16:29
Re: Need Help In Scripting - by Dayrion - 05.06.2016, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)