19.12.2013, 12:38
Existe algum FS de quando morrer ir parar num lugar
}
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerPos(playerid,x, y, z);
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
gPlayerHasCitySelected[playerid] = 0;
if(killerid == INVALID_PLAYER_ID) {
ResetPlayerMoney(playerid);
} else {
playercash = GetPlayerMoney(playerid);
if(playercash > 0) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
SetPlayerPos(playerid,1128.93750000,-1489.56970214,22.76142883);
}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
gPlayerHasCitySelected[playerid] = 0;
if(killerid == INVALID_PLAYER_ID)
{
ResetPlayerMoney(playerid);
}
else
{
GivePlayerGrana(playerid, -100);
SetPlayerPos(playerid, 1128.93750000, -1489.56970214, 22.76142883);
}
return 1;
}
SetPlayerMoney(playerid, -100);
SetPlayerPos(playerid, 1128.93750000,-1489.56970214,22.76142883);