/dropcar
#1

Hey guys its posssible to convert this cmd in zcmd?

PHP код:
if(strcmp(cmd"/dropcar"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
           {
            if(
PlayerOnMission[playerid] > 0)
            {
                  
SendClientMessage(playeridCOLOR_GREY"   On a mission right now, can't use this command!");
                   return 
1;
            }
              if(
PlayerInfo[playerid][pCarTime] == 0)
            {
                 
GameTextForPlayer(playerid"~w~Car Selling ~n~~r~Drop the car at the Crane"50001);
                   
CP[playerid] = 1;
                
SetPlayerCheckpoint(playerid2506.5625,-2630.6484,13.6467,8.0);
            }
            else
            {
                 
SendClientMessage(playeridCOLOR_GREY"   You already Dropped a car, wait till your reload time is over!");
            }
        }
        return 
1;
    } 
Reply
#2

Код HTML:
cmd:dropcar(playerid, params[])
{
    if(!IsPlayerConnected(playerid)) return 1;
    if(PlayerOnMission[playerid]) return SendClientMessage(playerid, COLOR_GREY, "   On a mission right now, can't use this command!");
if(PlayerInfo[playerid][pCarTime] == 0) 
            { 
                 GameTextForPlayer(playerid, "~w~Car Selling ~n~~r~Drop the car at the Crane", 5000, 1); 
                   CP[playerid] = 1; 
                SetPlayerCheckpoint(playerid, 2506.5625,-2630.6484,13.6467,8.0); 
            } 
            else 
            { 
                 SendClientMessage(playerid, COLOR_GREY, "   You already Dropped a car, wait till your reload time is over!"); 
            }      
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)