Crashing while spawning
#5

Well, I added this to OnPlayerRequestClass.

But now I have one problem. Say I have a variable which stores player's skin.

PHP Code:
new gSkin[MAX_PLAYERS]; 
PHP Code:
public OnPlayerRequestClass(playeridclassid)
{
     
gSkin[playerid] = GetPlayerSkin(playerid);
     
SetSpawnInfo(playeridNO_TEAMgSkin[playerid], 0000.0000000);
     return 
1;

PHP Code:
CMD:myskin(playeridparams[])
{
     if(
sscanf(params,"d",params[0]) || params[0] < || params[0] == 74 || params[0] > 299) return SendClientMessage(playerid, -1"Use: /skin [1-299]");
     
gSkin[playerid] = params[0];
     return 
SetPlayerSkin(playeridparams[0]);

But I have GangWar system, and when a player spawns to special zone (/cw) his skin should be changed. I did /skin 24 (e.g). After respawning to normal zone (/cwoff) it gives me the skin which I chose in RequestClass. Please help me to solve this. Sorry for my bad english.
Reply


Messages In This Thread
Crashing while spawning - by Yera96 - 21.06.2014, 10:39
Re: Crashing while spawning - by Cena44 - 21.06.2014, 11:27
Re: Crashing while spawning - by Yera96 - 21.06.2014, 12:20
Re: Crashing while spawning - by bare380 - 21.06.2014, 12:50
Re: Crashing while spawning - by Yera96 - 21.06.2014, 15:13
Re: Crashing while spawning - by Yera96 - 22.06.2014, 13:05
Re : Crashing while spawning - by Clad - 22.06.2014, 13:18
Re: Crashing while spawning - by Yera96 - 22.06.2014, 16:51
Re: Crashing while spawning - by Clad - 22.06.2014, 16:54
Re: Crashing while spawning - by Yera96 - 22.06.2014, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)