Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PP_WP
- #define MODE_NAME "MyMode"
- native WP_Hash(buffer[], len, const str[]);
- #include <YSI\y_commands>
- #include <YSI\y_users>
- #include <YSI\y_uvar>
- #include <YSI\y_extra>
- #include <YSI\y_text>
- enum E_PLAYER_DATA
- {
- E_PLAYER_SKIN,
- Float:E_PLAYER_HEALTH
- }
- uvar gPlayerData[MAX_PLAYERS][E_PLAYER_DATA];
- loadtext mode[messages];
- public OnGameModeInit()
- {
- Langs_Add("EN", "English");
- return 1;
- }
- public OnPlayerLogin(playerid, uid)
- {
- Text_Send(playerid, $WELCOME_BACK);
- SetPlayerSkin(playerid, gPlayerData[playerid][E_PLAYER_SKIN]);
- SetPlayerHealth(playerid, gPlayerData[playerid][E_PLAYER_HEALTH]);
- }
- public OnPlayerLogout(playerid, uid)
- {
- gPlayerData[playerid][E_PLAYER_SKIN] = GetPlayerSkin(playerid);
- GetPlayerHealth(playerid, gPlayerData[playerid][E_PLAYER_HEALTH]);
- }
Advertisement
Add Comment
Please, Sign In to add comment