05.10.2011, 20:40
Hi , i create this One (to punish players who disconnect if they are Cuffed):
so , i want to get the Name of the player who has been kicked and say:
%s cuffed and Disconnect, 60Min Jail and -4500$ (i want someone helping me to create it )
i used Format but i get Erros for Undefinned symbole String,
So , if anyone can Create it for me should be better Thanks.
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
if(PlayerCuffed[playerid] == 2)
{
SafeGivePlayerMoney(playerid, -4500);
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = 60*60;
SetPlayerInterior(playerid, 6);
PlayerInfo[playerid][pInt] = 6;
SetPlayerPos(playerid, 264.6288,77.5742,1001.0391);
SetPlayerWorldBounds(playerid, 264.6288,77.5742,1001.0391,1798.7453);
}
%s cuffed and Disconnect, 60Min Jail and -4500$ (i want someone helping me to create it )
i used Format but i get Erros for Undefinned symbole String,
So , if anyone can Create it for me should be better Thanks.