Help With My Gamemode
#1

This is a new gamemode I have started and I am having trouble with a few things:

> Players skin doesnt seem to be saved. Its always 0
> If the account is registered then the player doesnt need to use class select screen just SpawnPlayer. It always shows class select even if registered.

Script: http://pawn.pastebin.com/d54c12e07

Thanks!
Reply
#2

1) By the time OnPlayerDisconnect is called thier game is fully unloaded so it returns 0 for GetPlayerSkin,
2) Use SpawnPlayer
Reply
#3

OK so I have fixed the skin saving part but what is wrong with this?

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if (!dini_Exists(udb_encode(PlayerName)))
        {
        SetPlayerPos(playerid, -78.8672, -1134.3965, 1.0781);
        SetPlayerFacingAngle(playerid, 66);
        SetPlayerCameraPos(playerid, -83.8363, -1133.8111, 1.6858);
        SetPlayerCameraLookAt(playerid, -73.8363, -1133.8111, 1.6858);
    }
    else
    {
        SpawnPlayer(playerid);
    }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)