here its code it work fine but i want player can spawn only one car at time ,meaning is when he spawn new car the old car which he spawn before destroyed I hope you Guyz Help Me Thanks
Код:
CMD:acar(playerid, params[])
{
if(Player[playerid][pAdmin] >= 2)
{
if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,0x00FF00AA,"You're in a vehicle.");
else
{
new Float:pX,Float:pY,Float:pZ,Float:pw;
GetPlayerPos(playerid, pX,pY,pZ);
GetPlayerFacingAngle(playerid, pw);
new Vehicleid = CreateVehicle(541, pX, pY, pZ, pw, 0, 0, 0);
PutPlayerInVehicle(playerid, Vehicleid, 0);
GameTextForPlayer(playerid,"~w~Bullet",3000,1);
}
}
}