24.05.2014, 17:22
Hello so i made a code that after a player is choosing his gender then his race he will spawn with his gender skin
but it doesn't work and he spawns with cj skin that only happens upon register in the login everything is good
here is my code
but it doesn't work and he spawns with cj skin that only happens upon register in the login everything is good
here is my code
pawn Код:
if(dialogid == RaceChoosing)
{
if(response)
{
if(listitem == 0)
{
pInfo[playerid][pRace] = 1;
SendClientMessage(playerid,-1,"You will become Angel as soon as you make the application on forums.");
INI_ParseFile(Path(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid);
SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],-327.1662,1090.9407,19.7422,288.7162,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
if(listitem == 1)
{
pInfo[playerid][pRace] = 2;
SendClientMessage(playerid,-1,"You will become Demon as soon as you make the application on forums.");
INI_ParseFile(Path(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid);
SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],-327.1662,1090.9407,19.7422,288.7162,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
if(listitem == 2)
{
pInfo[playerid][pRace] = 3;
SendClientMessage(playerid,-1,"You will become Vampire as soon as you make the application on forums.");
INI_ParseFile(Path(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid);
SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],-327.1662,1090.9407,19.7422,288.7162,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
if(listitem == 3)
{
pInfo[playerid][pRace] = 4;
SendClientMessage(playerid,-1,"You will become Werewolve as soon as you make the application on forums.");
INI_ParseFile(Path(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid);
SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],-327.1662,1090.9407,19.7422,288.7162,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
if(listitem == 4)
{
pInfo[playerid][pRace] = 5;
SendClientMessage(playerid,-1,"You have choosen Human race.");
INI_ParseFile(Path(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid);
SetSpawnInfo(playerid,0,pInfo[playerid][pSkin],-327.1662,1090.9407,19.7422,288.7162,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
}
}