05.10.2011, 21:04
it will be like this ?
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
new String[200];
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);
format(String, sizeof(String), "%s() Disconnected while Cuffed!,Punishments: 60Min Jail and -4500$",Name,playerid);
}