CMD:vip(playerid, params[])
{
if(Player[playerid][pVIP] < 1)
return SendClientMessage(playerid, COLOR_RED, "{FFFFFF}|FAIL|{BEBEBE} Vocк nгo й um vip. Consulte nosso /forum e saiba como se tornar um.");
if(!strlen(params))
return SendClientMessage(playerid, COLOR_GREY, "{FFFFFF}|USO|{BEBEBE} /vip [chat]");
format(thestring,128,"[VIP] %s diz: %s.", AccountVIP(playerid), Player[playerid][pName], params);
SendDoadorMessage(COLOR_GREEN,thestring);
return 1;
}
CMD:v(playerid, params[]) { if(PlayerInfo[playerid][pVIP] < 1) return SendClientMessage(playerid,COLOR_RED,"ERRO: Vocк nгo tem permissгo para usar este comando."); new string[128]; if(isnull(params)) return SendClientMessage(playerid, COR_USOCORRETO, "Uso correto: /v [texto]"); format(string, sizeof(string), "[CHAT VIP] %s (%d): %s", Nome(playerid), playerid, params); SendVIPMessage(0x00F6F6AA, string); return 1; }
stock SendVIPMessage(cor,string[]) { for(new d; d < GetMaxPlayers(); ++d) { if(IsPlayerConnected(d) && PlayerInfo[d][pVip] > 0) { SendClientMessage(d,cor,string); } } }
stock SendVIPMessage(cor,string[])
{
for(new d; d < GetMaxPlayers(); ++d)
{
if(IsPlayerConnected(d) && PlayerInfo[d][pVip] > 0)
{
SendClientMessage(d,cor,string);
}
}
}
C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51129) : error 021: symbol already defined: "cmd_v" C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51130) : error 017: undefined symbol "PlayerInfo" C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51130) : warning 215: expression has no effect C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51130) : error 001: expected token: ";", but found "]" C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51130) : error 029: invalid expression, assumed zero C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51130) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
CMD:chatvip(playerid, params[]) { if(PlayerInfo[playerid][pVIP] < 1) return SendClientMessage(playerid,COLOR_RED,"ERRO: Vocк nгo tem permissгo para usar este comando."); new string[128]; if(isnull(params)) return SendClientMessage(playerid, COR_USOCORRETO, "Uso correto: /v [texto]"); format(string, sizeof(string), "[CHAT VIP] %s (%d): %s", Nome(playerid), playerid, params); SendVIPMessage(-1, string); return 1; }
C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51131) : error 017: undefined symbol "PlayerInfo" C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51131) : warning 215: expression has no effect C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51131) : error 001: expected token: ";", but found "]" C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51131) : error 029: invalid expression, assumed zero C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51131) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51135) : error 012: invalid function call, not a valid address C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51135) : warning 215: expression has no effect C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51135) : error 001: expected token: ";", but found ")" C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51135) : error 029: invalid expression, assumed zero C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51135) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
CMD:v(playerid, params[])
{
if(IsPlayerConnected(playerid) && PlayerInfo[playerid][pVIP] >= 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /v [Chat Vip]");
return true;
}
format(string, sizeof(string), "** VIP %s: %s", sendername, result);
SendVIPMessage(0xFFCCFFAA,string);
printf("VIP %s: %s", sendername, result);
}
return true;
}
stock SendVIPMessage(color, string[]){
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pVIP] >= 1)
{
SendClientMessage(i, color, string);
}
}
}
}
C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51139) : error 017: undefined symbol "PlayerInfo" C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51139) : warning 215: expression has no effect C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51139) : error 001: expected token: ";", but found "]" C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51139) : error 029: invalid expression, assumed zero C:\Users\Gustavo\Desktop\Servidor\gamemodes\gm.pwn (51139) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
CMD:vip(playerid, params[]) { if(Player[playerid][pVIP] < 1) return SendClientMessage(playerid, COLOR_RED, "{FFFFFF}|FAIL|{BEBEBE} Vocк nгo й um vip. Consulte nosso /forum e saiba como se tornar um."); new text; if(sscanf(params, "s[126]", text)) return SendClientMessage(playerid, COLOR_GREY, "{FFFFFF}|USO|{BEBEBE} /vip [chat]"); { new string[128]; new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1]; GetPlayerName(playerid, name, sizeof(name)); format(string,string,"[VIP] %s diz: %s.", name, text); VipChat(COLOR_GREEN, string); } return 1; }
stock VipChat(color,const string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) if (Player[i][pVIP] >= 1){ SendClientMessage(i, color, string); } } return 1; }