12.11.2012, 20:24
Код:
if(strcmp("/setplate , cmdtext , true, 30) == 0) { new vehid = GetPlayerVehicleID(playerid); SetVehicleNumberPlate( vehid, cmdtext); GameTextForPlayer(playerid,cmdtext,8000,1); return 1; }
if(strcmp("/setplate , cmdtext , true, 30) == 0) { new vehid = GetPlayerVehicleID(playerid); SetVehicleNumberPlate( vehid, cmdtext); GameTextForPlayer(playerid,cmdtext,8000,1); return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) {
new cmd[128], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/kick", true) == 0) {
new tmp[128];
tmp = strtok(cmdtext, idx);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), tmp);
GameTextForPlayer(playerid,tmp,8000,1);
return 1;
}
return 0;
}