Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnTagDataLoad(playerid)
- {
- PlayerInfo[playerid][Tag] = 1;
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- if(strfind(GetName(playerid), "[AwC]") != -1 || strfind(GetName(playerid), "[AwC]") != -1)
- {
- new query[256];
- mysql_format(database, query, sizeof(query), "SELECT * FROM Tag WHERE Nick = '%s' AND Allowed= '1' LIMIT 1", GetName(playerid));
- mysql_tquery(database,query,"OnTagDataLoad","i",playerid);
- new rows,fields;
- cache_get_data(rows,fields,database);
- if(rows)
- {
- PlayerInfo[playerid][Tag] = 1;
- }
- else
- {
- SendClientMessage(playerid, red, "You are not an official [AwC] Tag Holder, you cannot login with the [AwC] Tag");
- SendClientMessage(playerid, red, "Please logout and login with a different name that does not consist of the [AwC] Tag");
- SetTimerEx("KickPublic", 200, false, "i", playerid);
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment