19.08.2009, 22:50
Код:
if(strcmp(cmd, "/ccline", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0x919191FF, "USAGE: /Ccline [Line id]"); return 1; } lineid = strval(tmp); if(lineid > 4) { SendClientMessage(playerid, 0x919191FF, "There is no number of line..max is 4"); return 1; } if(lineid == 1) { DisablePlayerCheckpoint(playerid); DRIVERCP[playerid]++; SetPlayerCheckpoint(playerid,LineOne[1][0],LineOne[1][1],LineOne[1][2],5.0); return 1; } if(lineid == 2) { DisablePlayerCheckpoint(playerid); DRIVERCP[playerid]++; SetPlayerCheckpoint(playerid,LineTow[1][0],LineTow[1][1],LineTow[1][2],5.0); } return 1; }
--------------------------------------
and how can i do,that when every player enter to every bus in the server,i wil be able to do any command? [ i nned to know this thing only]
Код:
if(!IsPlayerInVehicle(GetPlayerVehicleID(playerid),437)) { SendClientMessage(playerid,COLOR_RED,"You're not in the BUS!"); return 1;
thanks