else if(PlayerVip[playerid] == 1)
{
SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
SendClientMessageToAll(AZUL_CLARO, String);
}
else if(PlayerVip[playerid] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
format(String,sizeof(String),"VIP %s: %s", sendername , Texto);
SendClientMessageToAll(AZUL_CLARO, String);
}
pawn Код:
|
CMD:avip(playerid, params[])
{
new Texto[128];
if(PlayerVip[playerid] <= 0)
{
SendClientMessage(playerid, -1, "{FF0000}[Erro]{FFFFFF}Vc Nao й um Player Vip");
}
else if(PlayerVip[playerid] == 1)
{
SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
SendClientMessageToAll(AZUL_CLARO, String);
}
else if(PlayerVip[playerid] == 2)
{
if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, COR_CINZA, "Use /avip [texto]");
format(String, sizeof(String), "~y~S-Vip %s: ~w~%s", pNome(playerid), Texto);
GameTextForAll(String, 5000, 4);
}
else if(PlayerVip[playerid] == 3)
{
if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, COR_CINZA, "Use /avip [texto]");
format(String, sizeof(String), "~y~Socio %s: ~w~%s", pNome(playerid), Texto);
GameTextForAll(String, 5000, 4);
}
return 1;
}
CMD:avip(playerid, params[])
{
new Texto[128];
if(PlayerVip[playerid] <= 0) return SendClientMessage(playerid, -1, "{FF0000}[Erro]{FFFFFF}Vc Nao й um Player Vip");
if(sscanf(params, "s[128]", Texto)) return SendClientMessage(playerid, COR_CINZA, "Use /avip [texto]");
if(PlayerVip[playerid] == 1)
{
SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
SendClientMessageToAll(AZUL_CLARO, String);
}
else if(PlayerVip[playerid] == 2)
{
format(String, sizeof(String), "~y~S-Vip %s: ~w~%s", pNome(playerid), Texto);
GameTextForAll(String, 5000, 4);
}
else if(PlayerVip[playerid] == 3)
{
format(String, sizeof(String), "~y~Socio %s: ~w~%s", pNome(playerid), Texto);
GameTextForAll(String, 5000, 4);
}
return 1;
}
CMD:avip(playerid, params[])
{
new Texto[128];
if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, COR_ERRO, "USE: /avip [MENSAGEM]");
if(PlayerVip[playerid] <= 0)
{
SendClientMessage(playerid, -1, "{FF0000}[Erro]{FFFFFF}Vc Nao й um Player Vip");
}
else if(PlayerVip[playerid] == 1)
{
SendClientMessageToAll(0x00FF24FF, ":|======Anuncio VIP======|:");
format(String,sizeof(String),"VIP %s: %s", pNome(playerid), Texto);
SendClientMessageToAll(AZUL_CLARO, String);
}
else if(PlayerVip[playerid] == 2)
{
format(String, sizeof(String), "~y~S-Vip %s: ~w~%s", pNome(playerid), Texto);
GameTextForAll(String, 5000, 4);
}
else if(PlayerVip[playerid] == 3)
{
format(String, sizeof(String), "~y~Socio %s: ~w~%s", pNome(playerid), Texto);
GameTextForAll(String, 5000, 4);
}
return 1;
}
Esqueceu do sscanf *-*
pawn Код:
|