if(strcmp(cmd, "/jail", true) == 0) { new tmp2[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /jail [playerid] [time] [reason]"); tmp2 = strtok(cmdtext, idx); new money = strval(tmp2); if(!strlen(tmp2)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /jail [playerid] [time] [reason]"); if(!money = 60,120,180,240,300,360,420,480,540,600) return SendClientMessage(playerid, COLOR_WHITE, "הזמן חייב להיות דקה עגולה!"); new player; player = ReturnUser(tmp); if(PlayerInfo[playerid][pAdmin] < 1) return 0; if(!IsPlayerConnected(player)) return SendClientMessage(playerid, COLOR_WHITE, "איידי שגוי"); if(PlayerInfo[playerid][pAdmin] < PlayerInfo[playa][pAdmin]) return SendClientMessage(playerid, COLOR_BRIGHTRED, "אתה לא יכול לשלוח לכלא אדמין ברמה גבוהה ממך!"); if(player != INVALID_PLAYER_ID) } idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /jail [playerid] [time] [reason]"); { GetPlayerName(player, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); ResetPlayerWeapons(player); SetPlayerInterior(playa, 3); TogglePlayerControllable(playerid, 1); SetPlayerPos(player,264.3591,77.5832,1001.0391,270 .0000); SetPlayerFacingAngel(player,270.0000); if(money = 60) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 1 Minute for %s",sendername,giveplayer,result); else if(money = 120) return SSendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 2 Minute for %s",sendername,giveplayer,result); else if(money = 180) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 3 Minute for %s",sendername,giveplayer,result); else if(money = 240) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 4 Minute for %s",sendername,giveplayer,result); else if(money = 300) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 5 Minute for %s",sendername,giveplayer,result); else if(money = 360) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 6 Minute for %s",sendername,giveplayer,result); else if(money = 420) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 7 Minute for %s",sendername,giveplayer,result); else if(money = 480) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 8 Minute for %s",sendername,giveplayer,result); else if(money = 540) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 9 Minute for %s",sendername,giveplayer,result); else if(money = 600) return SendClientMessageToAllEx(playerid, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 10 Minute for %s",sendername,giveplayer,result); else if(money = 60) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 1 Minute",sendername,giveplayer); else if(money = 120) return SSendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 2 Minute",sendername,giveplayer); else if(money = 180) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 3 Minute",sendername,giveplayer); else if(money = 240) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 4 Minute",sendername,giveplayer); else if(money = 300) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 5 Minute",sendername,giveplayer); else if(money = 360) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 6 Minute",sendername,giveplayer); else if(money = 420) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 7 Minute",sendername,giveplayer); else if(money = 480) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 8 Minute",sendername,giveplayer); else if(money = 540) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 9 Minute",sendername,giveplayer); else if(money = 600) return SendClientMessage(giveplayer, COLOR_RED, "Admin \"%s\"(ID:%d) jailed \"%s\"(ID:%d) for 10 Minute",sendername,giveplayer); SendClientMessage(giveplayer, COLOR_WHITE, "You have been jailed for: %s",result); SetTimerEx("UnJail",PlayerInfo[playerid][pPrisonTime]*1000,0,"d",playerid); } return 1; } if(strcmp(cmd, "/unjail", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unjail [playerid]"); new player = ReturnUser(tmp); if(PlayerInfo[playerid][pAdmin] < 2) return DenyMessage(playerid, 2); if(!IsPlayerConnected(playa)) return SendClientMessage(playerid, COLOR_WHITE, "איידי שגוי"); if(player != INVALID_PLAYER_ID) { GetPlayerName(player, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); SetPlayerWorldBounds(player,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player SetPlayerInterior(player, 0); SetPlayerHealth(player,0) TogglePlayerControllable(playerid, 0); SetPlayerPos(playa, -1505.0958,1374.5413,3.9249); SendClientMessageToAllEx(playerid, COLOR_GREEN, "Admin \"%s\"(ID:%d) unjailed \"%s\"(ID:%d)",sendername,giveplayer); SendClientMessage(giveplayer, COLOR_GREEN, "You have been releas from jail!",sendername,giveplayer); } return 1; } |
Originally Posted by ByFukara
actually
|
Originally Posted by Anarkien
Why can't you just check if it works or not yourself?
|
Originally Posted by ByFukara
jail and money What relevance
|