13.11.2009, 16:59
Код:
if (strcmp(cmdtext, "/duel 1", true) == 0) { SetPlayerVirtualWorld(playerid, 0); if(IsPlayerInAnyVehicle(playerid)) //If they are in a vehicle SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0); //Take the vehicle with them return 1; }
Код:
if (strcmp(cmdtext, "/duel 1", true) == 0) { SetPlayerVirtualWorld(playerid, 1); if(IsPlayerInAnyVehicle(playerid)) { SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 1);} //Take the vehicle with them return 1; }
P.S
in cmd you can put 0-10000000 spaces ... but when u use it you need to write like that..