CMD;car problem
#1

pawn Код:
CMD:car(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 4 || IsPlayerAdmin(playerid))
    {
          new vid, Float:X, Float:Y, Float:Z, Float:Angle, col1, col2;
          if(sscanf(params,"d", vid)) return SendClientMessage(playerid, COLOR_GREY,"Syntax /car [vehicleid] [vcol1] [vcol2]");
          if(vid < 400 || vid > 611) return SendClientMessage(playerid,COLOR_RED,"Invalid Vehicle ID (400 - 611)");
          GetPlayerPos(playerid, X, Y, Z);
          GetPlayerFacingAngle(playerid, Angle);
          CreateVehicle(vid, X, Y, Z, Angle, col1, col2, 60);
    }
    else SendClientMessage(playerid,COLOR_RED,"You do not have the right admin permissions for this command!");
    return 1;
}
how can i make this to when player leave the car it will be respawn automaticly?
Reply


Messages In This Thread
CMD;car problem - by ReD_HunTeR - 01.03.2014, 15:05
Re: CMD;car problem - by Threshold - 01.03.2014, 15:18
Re: CMD;car problem - by ReD_HunTeR - 01.03.2014, 15:41

Forum Jump:


Users browsing this thread: 2 Guest(s)