17.09.2010, 17:40
hello,
I have a problem with the function "OnPlayerRequestClass".
I want to spawn the player without request a class.
I have tried it with the "SpawnPlayer(playerid);" but it didnґt work. I cant login!
Look at my script pls:
Public OnPlayerRequestClass(playerid, claasid)
{
SpawnPlayer(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))
{
//here is a login script. if i pull it to OnPlayerRequestClass it will work! but I want it have here xD
}
}
I have a problem with the function "OnPlayerRequestClass".
I want to spawn the player without request a class.
I have tried it with the "SpawnPlayer(playerid);" but it didnґt work. I cant login!
Look at my script pls:
Public OnPlayerRequestClass(playerid, claasid)
{
SpawnPlayer(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))
{
//here is a login script. if i pull it to OnPlayerRequestClass it will work! but I want it have here xD
}
}