15.11.2011, 14:26 
	(
 Последний раз редактировалось Stefand; 15.11.2011 в 14:34.
					
					
						Причина: betere
)
	
	
		Hi users,
i have made a admin Jail command.
but maybe some of you can made a timer for it so he have to sit in jail for 1 min and then he is released to a place (cordinates i will put on it)
and make it so the player who needs to get jailed gets jailed and not the admin :$
but maybe some of you can make a start for me
	
	
	
	
i have made a admin Jail command.
but maybe some of you can made a timer for it so he have to sit in jail for 1 min and then he is released to a place (cordinates i will put on it)
and make it so the player who needs to get jailed gets jailed and not the admin :$
but maybe some of you can make a start for me

pawn Код:
CMD:jail(playerid,params[])
{
new jail[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME],string[128],pID;
GetPlayerName(pID,jail,MAX_PLAYER_NAME);
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_WHITE,"You are not an Admin");
else if(isnull(params))
{
SendClientMessage(playerid,COLOR_WHITE,"USAGE: /jail <playerid> <reason>");
}
else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,COLOR_WHITE,"Invalid Player");
else
{
format(string,sizeof(string),"COMMAND: %s has been jailed by %s reason: %s",jail,name,params);
SetPlayerPos(pID, 0, 0, 0);
SendClientMessageToAll(COLOR_RED,string);
}
return 1;
}




 try searching for Scripting Tutorials in forums
 try searching for Scripting Tutorials in forums