19.05.2011, 00:26
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new os;
new pTimer[MAX_PLAYERS];
new pWeapon[MAX_PLAYERS];
if (killerid == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_YELLOW,"Vocк morreu de causas naturais no jogo.");
new Float:posX[MAX_PLAYERS], Float:posY[MAX_PLAYERS], Float:posZ[MAX_PLAYERS];
GetPlayerPos(playerid,posX[playerid],posY[playerid],posZ[playerid]);
SendClientMessage(playerid,COLOR_PURPLE,"Vocк morreu!!!");
os = GetPlayerScore(killerid);
SetPlayerScore(killerid,os++);
SendClientMessage(killerid,COLOR_PURPLE,"Vocк matou!!!");
pWeapon[playerid] = GetPlayerWeapon(playerid);
SetTimer("Renascer", 4000, 0);
return 1;
}
As variaveis passei para dentro da public para nгo dб erro quando o compilador lк-las.