25.03.2013, 12:32
Hello guys, I just scripted out this... But I don't know how to fix it. :/ I want like
"VIP %s has spawned."
"Server Owner %s has spawned."
How? Here's my script.
"VIP %s has spawned."
"Server Owner %s has spawned."
How? Here's my script.
pawn Код:
if(IsPlayerVipMember(playerid))
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format (string,sizeof(string),"[SPAWNMSG]: VIP %s has spawned.", name);
SendClientMessageToAll(0x5A369600,string);
}
else
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format (string,sizeof(string),"[SPAWNMSG]: Player %s has spawned.", name);
SendClientMessageToAll(0x5A369600,string);
}
if(IsPlayerLuxAdminLevel(playerid, 1))
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format (string,sizeof(string),"[SPAWNMSG]: Helper %s has spawned.", name);
SendClientMessageToAll(0x5A369600,string);
}
if(IsPlayerLuxAdminLevel(playerid, 2))
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format (string,sizeof(string),"[SPAWNMSG]: Moderator %s has spawned.", name);
SendClientMessageToAll(0x5A369600,string);
}
if(IsPlayerLuxAdminLevel(playerid, 3))
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format (string,sizeof(string),"[SPAWNMSG]: Administrator %s has spawned.", name);
SendClientMessageToAll(0x5A369600,string);
}
if(IsPlayerLuxAdminLevel(playerid, 4))
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format (string,sizeof(string),"[SPAWNMSG]: Lead Administrator %s has spawned.", name);
SendClientMessageToAll(0x5A369600,string);
}
if(IsPlayerLuxAdminLevel(playerid, 5))
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format (string,sizeof(string),"[SPAWNMSG]: Server Owner %s has spawned.", name);
SendClientMessageToAll(0x5A369600,string);
}