Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- YT Global modul
- <<------------------------------------------->>
- */
- #include "a_samp"
- #include "YSI_Storage\y_ini"
- #include "YSI_Coding\y_hooks"
- #include "YSI_Visual\y_commands"
- #include "streamer"
- #include "sscanf2"
- #define color_white "{FFFFFF}"
- #define color_red "{C72639}"
- #define color_gray "{CFCFCF}"
- #define color_green "{2FED3C}"
- #define color_yellow "{FFFF33}"
- #define color_lorange "{E3C36B}"
- forward KickPlayer(playerid);
- public KickPlayer(playerid) return Kick(playerid);
- stock PlayerNameFromID(playerid) {
- new PlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
- return PlayerName;
- }
- stock AccountPath(playerid) {
- new string[128];
- format(string, sizeof(string), ACCOUNT_path, PlayerNameFromID(playerid));
- return string;
- }
- stock udb_hash(buf[]) {
- new length = strlen(buf), s1 = 1, s2 = 0;
- for( new n = 0; n < length; n++ ) {
- s1 = ( s1 + buf[n] ) % 65521;
- s2 = ( s2 + s1 ) % 65521;
- }
- return ( s2 << 16 ) + s1;
- }
- hook OnGameModeInit() {
- new h, m, s;
- gettime( h, m, s );
- printf("[ %02d:%02d:%02d ] YT_Global skripta ucitana!", h, m, s);
- EnableStuntBonusForAll(0);
- DisableInteriorEnterExits();
- return 1;
- }
- hook OnPlayerSpawn(playerid) {
- SetPlayerSkin(playerid, PlayerInfo[playerid][PLAYER_Skin]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment