04.11.2011, 00:31
how can i do that every time when i use the command it will spawn me an another type of vehicle??
PHP код:
if(!strcmp(cmdtext, "/car", true))
{
if(IsPlayerAdmin(playerid))
{
new Float:x,Float:y,Float:z,Float:angle;
GetPlayerPos(playerid, x,y,z);
car = CreateVehicle(522,x,y,z,angle, 0, 1, 60);
PutPlayerInVehicle(playerid, car, 0);
}
return 1;
}