16.03.2012, 14:57
pawn Код:
#include <a_samp>
forward SetPlayerPrisao(killerid);
new bool:Prisao[MAX_PLAYERS];
//new String[128];
public OnPlayerDeath(playerid,killerid)
{
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER) {
Prisao[killerid] = true;
ResetPlayerWeapons(killerid);
GivePlayerMoney(killerid, -3500);
SetPlayerPos(killerid, 197.6661, 173.8179, 1003.0233);
SetPlayerInterior(killerid, 3);
SetTimerEx("SetPlayerPrisao", 300000, 0, "i", killerid);
}
return 1;
}
public SetPlayerPrisao(killerid)
{
new giveplayer[MAX_PLAYER_NAME];
GetPlayerName(killerid, giveplayer, sizeof(giveplayer));
SetPlayerInterior(killerid,0);
SpawnPlayer(killerid);
Prisao[killerid] = false;
GameTextForPlayer(killerid, "~w~~h~voce esta ~r~~h~livre!", 1000,1);
return 1;
}