09.07.2011, 21:38
yeah, its not hard to change
pawn Код:
//OnPlayerCommandText
if((strcmp("/setteam", cmdtext, true, 8) == 0) && ((cmdtext[8] == EOS) || (cmdtext[8] == ' '))) {
if((cmdtext[8] == EOS) || (cmdtext[9] == EOS)) {
SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /setteam [team]");
} else {
cmdtext[0] = strval(cmdtext[9]);
if(0 < cmdtext[0] <= 500) {
SetPlayerTeam(playerid, cmdtext[0]);
} else {
SendClientMessage(playerid, 0xFFFFFFFF, "Invalid team, only 1 - 500");
}
}
return true;
}