12.09.2010, 23:39
(
Last edited by Marshall_Banks; 18/09/2010 at 03:38 PM.
)
After i die my screen goes whtie with a black boz and onyl way to fix it is to relog.
It works fine the first time i die but if i die a second time it goes all wird like this.
[ame]http://www.youtube.com/watch?v=rOnzWc4e_Hc[/ame]

Onplayerdeath and spawn
It works fine the first time i die but if i die a second time it goes all wird like this.
[ame]http://www.youtube.com/watch?v=rOnzWc4e_Hc[/ame]

Onplayerdeath and spawn
Code:
public OnPlayerSpawn(playerid)
{
if(gPlayerLogged[playerid])
{
PlayerInfo [playerid] [pSkin] = GetPlayerSkin(playerid);
SetPlayerSpawn(playerid);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo [playerid] [pSkin] = GetPlayerSkin(playerid);
new string[128];
if(IsPlayerConnected(killerid))
{
if(killerid != playerid)
{
if(AdminDuty[playerid])
{
if(!AdminDuty[killerid])
{
KickPlayer(killerid,"System","Killing an administrator on duty with abuse.");
format(string, sizeof(string), "[INFO:] System has kicked %s, Reason: Killing an administrator on duty with abuse. ", PlayerName(killerid));
KickLog(string);
}
}
SetPlayerWantedLevelEx(killerid,GetPlayerWantedLevelEx(playerid)+1);
}
}
return 1;
}

