06.04.2013, 16:56
Help.
the commad look like a clean up chat command.
not showing the commands.
the commad look like a clean up chat command.
not showing the commands.
PHP код:
stock VipName(playerid)
{
new StringLevel[128];
switch(Pinfo[playerid][VipLevel])
{
case 1: StringLevel = "Vip";
case 2: StringLevel = "Silver-Vip";
case 3: StringLevel = "Gold-Vip";
case 4: StringLevel = "Vip-Manager";
case 5: StringLevel = "Vip-Co-Owner";
case 6: StringLevel = "Vip-Owner";
}
return StringLevel;
}
COMMAND:vips(playerid, params[])
{
#pragma unused params
new Count;
new str[45];
SendClientMessage(playerid, -1, "Vip online:");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(Pinfo[playerid][VipLevel] >= 1)
{
Count ++;
format(str, sizeof str, "%s %s", VipName(i));
SendClientMessage(playerid, -1, str);
}
}
if(Count < 1) SendClientMessage(playerid, -1, "No Vip Online!");
// Let the server know that this was a valid command
return 1;
}