27.02.2010, 11:36
Код:
//------------------------------------------------------------------------------ if(strcmp(cmd, "/dvec", true) == 0) { if (AccountPL[playerid][KzAdmin] >= 5) { new obj2id = strval(strtok(cmdtext, idx)); if(!obj2id) { SendClientMessage(playerid, WHITE, "USAGE: /dvec [ID]"); return 1; } format(string, sizeof(string), "Vehicle: %d destroyed successfully", obj2id); SendClientMessage(playerid,GREEN, string); RemovePlayerFromVehicle(obj2id); DestroyVehicle(obj2id); return 1; } else { SendClientMessage(playerid,RED,"NO!"); } return 1; }