Guest Ryder14 Odesláno: 20. Září, 2008 Share Odesláno: 20. Září, 2008 zdar lidi;-) prosím pomohli by jste mi z /unj? - ja zatknu hrace a je vezeni chci ho propustit a pise to hrac neni ve vezeni a nwm cim to je prosím pomoc Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 20. Září, 2008 Share Odesláno: 20. Září, 2008 zřejmě máš špatně podmínku, napiš své příkazy jail a unjail Link to comment Share on other sites More sharing options...
0 Guest Ryder14 Odesláno: 20. Září, 2008 Share Odesláno: 20. Září, 2008 [code][*]if(strcmp(cmd, "/j", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ORANGE, "[POUŽÍT] /j [iD]"); return 1; } giveplayerid = strval(tmp); if (jailed[playerid] == 0){ } if(GetPlayerWantedLevel(giveplayerid)>2){ if (iPlayerRole[playerid] == 6 || iPlayerRole[playerid] == 7 || iPlayerRole[playerid] == 8){ if (IsPlayerConnected(giveplayerid)) { if(GetDistanceBetweenPlayers(playerid,giveplayerid)<10) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Zatkl jsi do vězení %s (ID:%d)", giveplayer, giveplayerid); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s [iD] byl zatknutý do vězení policistou %s (ID:%d)", giveplayer, giveplayerid, sendername, playerid); SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerColor(giveplayerid, COLOR_WHITE); jailed[playerid] = 11; printf(string); ResetPlayerWeapons(playerid); SetPlayerInterior(giveplayerid,6); SetPlayerPos(giveplayerid,264.1896,76.5761,1001.0391); SetPlayerFacingAngle(giveplayerid,177.0350); SetCameraBehindPlayer(giveplayerid); PlayerPlaySound(giveplayerid,1082,198.3797,160.8905,1003.0300); DisablePlayerCheckpoint(giveplayerid); return 1; }else{ format(string, sizeof(string), "ID %d není dostatečně blízko!.", giveplayerid); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } }else{ format(string, sizeof(string), "ID %d není aktivní hráč.", giveplayerid); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } }else{ format(string, sizeof(string), "Musíš být policista !", giveplayerid); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } }else{ format(string, sizeof(string), "Hráč nemá dostatečný WantedLevel na zatknutí! (3)", giveplayerid); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } return 1; } if(strcmp(cmd, "/unj", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ORANGE, "Použití : /unj [iD]"); return 1; } giveplayerid = strval(tmp); if(iPlayerRole[giveplayerid] == 200) { if (iPlayerRole[playerid] == 6) { if (IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Byl si propuštěn policistou %s (ID:%d)!", sendername, playerid); SendClientMessage(giveplayerid, COLOR_GREEN, string); format(string, sizeof(string), "%s (ID:%d) byl propuštěn policistou %s (ID:%d)", giveplayer, giveplayerid, sendername, playerid); SendClientMessageToAll(COLOR_GREEN, string); printf(string); iPlayerRole[giveplayerid] = 0; SetPlayerInterior(giveplayerid,0); SetPlayerPos(giveplayerid,-1264.1896,76.5761,1001.0391); TogglePlayerControllable(giveplayerid,1); SetPlayerColor(giveplayerid,COLOR_GREY); return 1; }else{ format(string, sizeof(string), "Takove id na serveru neni."); SendClientMessage(playerid, COLOR_YELLOW, string); } }else{ format(string, sizeof(string), "Nejsi policista nemůžeš propuoštět."); SendClientMessage(playerid, COLOR_WHITE, string); } }else{ format(string, sizeof(string), "Hráč není ve vězení."); SendClientMessage(playerid, COLOR_WHITE, string); } return 1; }[/code] Link to comment Share on other sites More sharing options...
0 chytrak 14 Odesláno: 20. Září, 2008 Share Odesláno: 20. Září, 2008 Je tady na foru spoustu verzi tehle prikazu, skus je najit. Link to comment Share on other sites More sharing options...
Dotaz
Guest Ryder14
zdar lidi;-) prosím pomohli by jste mi z /unj? - ja zatknu hrace a je vezeni chci ho propustit a pise to hrac neni ve vezeni a nwm cim to je prosím pomoc
Link to comment
Share on other sites
3 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now