public OnPlayerConnect(playerid) { SpawnPlayer(playerid); new file[128], pname[24]; GetPlayerName(playerid, pname, 24); format(file, sizeof(file), "%s.ini", pname); if(dini_Exists(file)) { SetPlayerSkin(playerid,dini_Int(file,"skin"); } return 1; } public OnPlayerDisconnect(playerid,reason) { new file[128], pname[24]; GetPlayerName(playerid, pname, 24); format(file, sizeof(file), "%s.ini", pname); if(dini_Exists(file)) { dini_IntSet(file,"skin",GetPlayerSkin(playerid)); } else { dini_Create(file); dini_IntSet(file,"skin",GetPlayerSkin(playerid)); } return 1; }
- For the /skin id: @ You can use ZCMD & sscanf because it's very easy to use that includes ... Search on ****** a ZCMD + sscanf commands tutorial - For skin load/save: @ For the beginning, you can use y_ini by ****** , find that searching on ******. Also , you can find a tutorial how to use it too (on ******) @ You also can use mysql. - For class selection skip @ You can use a timer , set it when player typed the right password(logged in / if you have an register/login system) , before you made the timer you will made the forward with the public. There you can use SpawnPlayer(playerid);
I will not give you scripts because you need to learn .. i will tell you how to do:
Код HTML:
- For the /skin id: @ You can use ZCMD & sscanf because it's very easy to use that includes ... Search on ****** a ZCMD + sscanf commands tutorial - For skin load/save: @ For the beginning, you can use y_ini by ****** , find that searching on ******. Also , you can find a tutorial how to use it too (on ******) @ You also can use mysql. - For class selection skip @ You can use a timer , set it when player typed the right password(logged in / if you have an register/login system) , before you made the timer you will made the forward with the public. There you can use SpawnPlayer(playerid); |