11.04.2010, 19:15
I don't got onplayerupdate.
Uhm I have to put SetPlayerVirtualWorld in onplayerupdate isn't?
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerVirtualWorld(playerid,0);
pStats[playerid][Spawned] = 0;
pStats[playerid][Loading] = -1;
TextDrawSetString(LoadingObj[playerid]," ");
if(pStats[playerid][UsingAnim])
{
pStats[playerid][UsingAnim] = 0;
TextDrawHideForPlayer(playerid,txtAnimHelper);
}
if(pStats[killerid][Zone] == 1 || pStats[killerid][Zone] == 3)
{
SendDeathMessage(killerid, playerid, reason);
if(pStats[playerid][Admin] >= 1)
{
if(pStats[killerid][Zone] == 1) { SendClientMessage(killerid, Green, "Newkill: You received $10.000 and 1 Points for murder an Admin!"); GivePlayerCash(killerid,10000); pStats[killerid][Points]++; }
if(pStats[killerid][Zone] == 3) { SendClientMessage(killerid, Green, "Newkill: You received $20.000 and 2 Points for murder an Admin!"); GivePlayerCash(killerid,20000); pStats[killerid][Points]+=2;}
}
else
{
if(pStats[killerid][Zone] == 1) { SendClientMessage(killerid, Green, "Newkill: You received $5.000 and 1 Points for this murder"); GivePlayerCash(killerid,5000); pStats[killerid][Points]++;}
if(pStats[killerid][Zone] == 3) { SendClientMessage(killerid, Green, "Newkill: You received $10.000 and 2 Points for this murder"); GivePlayerCash(killerid,10000); pStats[killerid][Points]+=2; }
}
}
return 1;
}

