I have any idea
look :
[pawn]new IsPRChosen;
public OnPlayerDeath(playerid, killerid, reason)
{
if(PR[playerid] == 1) {
SendClientMessage(playerid,COLOR_YELLOW,"test");
if(IsPRChosen == 1) {
IsPRChosen = 0;
}
}
return 1;
}
public OnPlayerSpawn(playerid,classid,teamid)
{
ToggleWidescreenForPlayer(playerid,0);
if(PR[playerid] == 1) {
if(IsPRChosen == 0) {
PR[playerid] = 1;
IsPRChosen = 1;
}
if(IsPRChosen == 1) {
GameTextForPlayer(playerid,"~o~Is Busy This Skin !");
SetPlayerHealth(playerid,0);
}
}
return 1;
}
public OnPlayerRequestClass(playerid, classid, skinid)
{
if(classid == 0) {
if(IsPRChosen == 0) {
PR[playerid] = 1;
SetPlayerSkin(playerid,0);
GameTextForPlayerBottom(playerid,"~y~President");
}
if(IsPRChosen == 1) {
GameTextForPlayerBottom(playerid,"~o~Busy");
}
}
return 1;
}[/pawn]
But, at spawn , killed me imediatly...
Why?
I solved problem with one timer on onplayerspawn
TOPIC CLOSEDnot work