Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This Name Tags FS is made by OutlawAK alias [GoD]Outlaw
- // Mainly i made this GM for movie making
- // Enjoy this stuff !!!
- // Date: 30.08.2008
- // Feel free to do anything with credits, but i hope your respect my job
- #include <a_samp>
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_RED 0xFF4646FF
- new gNameTags[MAX_PLAYERS];
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Name Tags Off/On by Outlaw ");
- print(" LOADED Perfectly ");
- print("--------------------------------------\n");
- return 1;
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "|�| You can turn on/off the nametags: /tagshelp");
- gNameTags[playerid] = 1;
- for(new i; i < MAX_PLAYERS; i++)
- if(IsPlayerConnected(i) && gNameTags[i] == 0)
- ShowPlayerNameTagForPlayer(i, playerid, 0);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- gNameTags[playerid] = 0;
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/tagshelp", cmdtext, true, 9) == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "|�| To turn nametags OFF type: /tagsoff");
- SendClientMessage(playerid, COLOR_GREY, "|�| To turn nametags ON type: /tagson");
- SendClientMessage(playerid, COLOR_GREY, "|�| Credits: OutlawAK ");
- return 1;
- }
- if(strcmp("/tagsoff", cmdtext, true, 8) == 0)
- {
- SendClientMessage(playerid, COLOR_RED, "|�| You have turned the nametags OFF");
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- for(new i; i < MAX_PLAYERS; i++)
- if(IsPlayerConnected(i))
- ShowPlayerNameTagForPlayer(playerid, i, 0);
- gNameTags[playerid] = 0;
- return 1;
- }
- if(strcmp("/tagson", cmdtext, true, 7) == 0)
- {
- SendClientMessage(playerid, COLOR_RED, "|�| You have turned the nametags ON");
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- for(new i; i < MAX_PLAYERS; i++)
- if(IsPlayerConnected(i))
- ShowPlayerNameTagForPlayer(playerid, i, 1);
- gNameTags[playerid] = 1;
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement