08.07.2015, 19:22
Quote:
dcmd_crimes(playerid, params[]) { #pragma unused params if (PlayerInfo[playerid][pSpawn] == 1){ if (PlayerInfo[playerid][pTeam] == TEAM_CIVILIAN){ new string[256],Wanted[128],idx,giveplayerid,tmp[256]; tmp = strtok(params, idx); if(!strlen(tmp)) { //SendClientMessage(playerid, COLOR_ERROR, "USAGE: /crimes (Name/Id)."); //return 1; giveplayerid = playerid; }else{ if(!isNumeric(tmp)) { giveplayerid = ReturnUser(playerid, tmp); if(giveplayerid == INVALID_PLAYER_ID) { return 1; } } |
Quote:
giveplayerid = ReturnUser(playerid, tmp); |