21.11.2010, 07:57
Does someone have a car spawing script so when someone writes /scar carid a car spawns near him?
if(!strcmp(cmdtext, "/scar", false, 5))
{
if(!strlen(cmdtext[5]) return SendClientMessage(playerid, red, "Usage: /scar [Model ID]");
new veh = strval(cmdtext[5]);
if(veh < 400 || veh > 611) return SendClientMessage(playerid, red, "ERROR: Invalid Vehicle Model");
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(veh, x,y,z, a, -1, -1, -1);
return 1;
}