21.02.2014, 16:59
I'm just making a basic vehicular ownership system, but I don't know how to spawn the vehicle with a command. You buy the vehicle, it gets removed upon restart and then you type /spawncar to spawn it back in...
Thats what i have but i get a tag mismatch warning on the CreateVehicle line rep+ for anyone who answers, appreciate it
Thats what i have but i get a tag mismatch warning on the CreateVehicle line rep+ for anyone who answers, appreciate it
pawn Код:
CMD:spawncar(playerid, params[])
{
new Float:x, Float:y, Flaot:z;
if(PlayerInfo[playerid][pVehicle] == 0) return SendClientMessage(playerid, 0x0, "{F81414}Console: {FFFFFF}You don't own a vehicle!");
AddStaticVehicleEx(PlayerInfo[playerid][pVehicle], x+5,y,z, 82.2873, 0, 1, 60);
return 1;
}