VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: MatheuS on July 21, 2012, 07:44:00 pm
Title: helps to put on my server gups prison
Post by: MatheuS on July 21, 2012, 07:44:00 pm
I want to put a script on my server gups prison if you guys can you please post here thanks.
-------------------------------------------
**Brasil virtual rpg 24hrs**
-------------------------------------------
Title: Re: helps to put on my server gups prison
Post by: kitt85711 on July 21, 2012, 07:59:13 pm
I'm not sure if I understand. You need to be more specific than just put a script on your prison. Its a prison that doesn't jail?
Title: Re: helps to put on my server gups prison
Post by: MatheuS on July 22, 2012, 04:29:32 pm
jail script
Title: Re: helps to put on my server gups prison
Post by: kitt85711 on July 22, 2012, 06:46:26 pm
Heres my old one. I'm working on an advance one though but use mine. } else if (strcmp(cmd, "jail", true) == 0) { new szMsg[256], plr; tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp); if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!"); else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c jail [Nick/ID]"); else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player"); else { format(szMsg,sizeof(szMsg),"%s put %s's ass in the slammer",gPlayers[playerid],gPlayers[plr]); SendClientMessageToAll(COLOR_YELLOW,szMsg); SetPlayerPos(plr,387.873, -509.743, 8.98706,0,0); TogglePlayerControllable(plr,0); RemovePlayerMarker(plr); SetPlayerWeapon(plr,0,0); } return 1;
Title: Re: helps to put on my server gups prison
Post by: kitt85711 on July 23, 2012, 08:25:45 am
Forgot unjail :p
[pawn]} else if (strcmp(cmd, "unjail", true) == 0) { new szMsg[256], plr; tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp); if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!"); else if (PlayerInfo[playerid][cop] != 1) SendClientMessage(playerid, COLOR_ORANGE, "Only officers can unjail suspects."); else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c unjail [Nick/ID]"); else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player"); else { format(szMsg,sizeof(szMsg),"%s unjailed %s and threw his ass in the street",gPlayers[playerid],gPlayers[plr]); SendClientMessageToAll(COLOR_YELLOW,szMsg); SetPlayerPos(plr,397.688, -471.821, 11.5172,0,0); TogglePlayerControllable(plr,1); SetPlayerMarker(plr,1); } return 1;[/pawn]
Title: Re: helps to put on my server gups prison
Post by: aledark24 on July 24, 2012, 07:15:22 am