06.03.2013, 09:27
Hi i need little help with tab,can make the script that when press TAB see names and if player vip see [VIP]Name
thank if you gonna help


//global
new playername[MAX_PLAYER_NAME][MAX_PLAYERS];
public OnPlayerLogin(playerid,password)
{
//after loading PlayerData
if(PlayerInfo[playerid][pVip] >= 1)
{
new name[MAX_PLAYER_NAME];
new vipname[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(vipname,24,"[VIP]%s",name);
strmid(playername[playerid],name,0,24,24);
SetPlayerName(playerid,vipname);
}
}
public OnPlayerDisconnect(playerid)
{
SetPlayerName(playerid,playername[playerid]);
}
new found, string[128], playername[MAX_PLAYER_NAME];
OnPlayerLogin(playerid,password)