02.11.2013, 16:27
No meu GM, se nгo for sуcio a pessoa pode dar /entrarorg
if(strcmp(cmd, "/kitsocio", true) == 0)
{
new location = PlayerInfo[playerid][pLocal];
if(location == 99 || location == 100 || location == 102 || PlayerToPoint(2.0,playerid,296.3083,-38.1549,1001.5156) || PlayerToPoint(2.0,playerid,313.8642,-133.8308,999.6016))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pSocio] == 1) // aqui estб a variбvel que define se o player й sуcio ou nгo
{
format(string, sizeof(string), "* %s Pegou Seu Kit VIP.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ResetPlayerWeaponsBHV(playerid);
GivePlayerWeaponBHV(playerid, 46, 1);
GivePlayerWeaponBHV(playerid, 24, 999);
GivePlayerWeaponBHV(playerid, 31, 999);
GivePlayerWeaponBHV(playerid, 29, 999);
GivePlayerWeaponBHV(playerid, 25, 999);
GivePlayerWeaponBHV(playerid, 34, 999);
GivePlayerWeaponBHV(playerid, 4, 1);
GivePlayerWeaponBHV(playerid, 1, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,COLOR_GREEN,"Vocк pegou o seu Kit Socio");
return true;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й Socio");
return true;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo estб em uma loja de armas.");
}
return true;
}
if(strcmp(cmd, "/entrarorg", true) == 0)
{
if(PlayerInfo[playerid][pSocio] < 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й Socio!");
return 1;
}
if(PlayerInfo[playerid][pVIP] < 3)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Esse comando so pode ser usado por jogadores Vip-Socio");
return 1;
}
if(strcmp(cmd,"/entrarorg",true)==0) { if(PlayerPaintballing[playerid] != 0) { SendClientMessage(playerid,COLOR_GREY," Vocк nгo entrar em organizaзхes no evento!"); return 1; } if(PlayerInfo[playerid][pJailed] != 0) { SendClientMessage(playerid,COLOR_GREY," Vocк nгo pode entrar em organizaзхes preso!"); return 1; } if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pVIP] > 3 || PlayerInfo[playerid][pVIP] > 4) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Esse comando sу pode ser usado por jogadores Sуcio"); return 1; } new x_nr[32]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COR_VAGOS, "{00FFFF}USE: /entrarorg [Nъmero da ORG]"); SendClientMessage(playerid, COLOR_WHITE, "1: {D2691E}(Policia Militar){D3D3D3} 2: {D2691E}(BOPE){D3D3D3} 3: {D2691E}(Exercito){D3D3D3} 4: {D2691E}(SA:MU){D3D3D3} 5: {D2691E}(Aztecas)"); SendClientMessage(playerid, COLOR_WHITE, "6: {D2691E}(Taliban){D3D3D3} 7: {D2691E}(Governo){D3D3D3} 8: {D2691E}(Hitmans){D3D3D3} 9: {D2691E}(Reporteres){D3D3D3} 10: {D2691E}(Taxistas)"); SendClientMessage(playerid, COLOR_WHITE, "11: {D2691E}(Policia Federal){D3D3D3} 12: {D2691E}(Mafia Cosa Nostra){D3D3D3} 13: {D2691E}(Mafia Yakuza){D3D3D3} 14: {D2691E}(Groove Street)"); SendClientMessage(playerid, COLOR_WHITE, "15: {D2691E} (Al'qaeda){D3D3D3} 16: {D2691E}(Polнcia Civil){D3D3D3} 17: {D2691E}(Ballas){D3D3D3} 18: {D2691E}(Los Vagos){D3D3D3}"); SendClientMessage(playerid, COLOR_WHITE, "19: {D2691E}(Comando Vermelho) 20: {D2691E}(PCC) 21: {D2691E}(Sons Of Anarchy){D3D3D3} 22: {D2691E}(Mayans)"); SendClientMessage(playerid, COLOR_WHITE, "23: {D2691E}(Interpol){D3D3D3} 24: {D2691E}(Mecanicos){D3D3D3} 25: {D2691E}(Triads)"); return 1; } if(PlayerInfo[playerid][pMembro] != 0 || PlayerInfo[playerid][pLider] != 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "Voce precisa /pedircontas para trocar de organizaзao"); return 1; } if(WantedPoints[playerid] != 0) if(PlayerInfo[playerid][pEmprego] > 2) { SendClientMessage(playerid, COLOR_LIGHTRED, "Voce possui uma profissao /sairdoemprego."); return 1; } if(PlayerInfo[playerid][pJailed] != 0) { SendClientMessage(playerid,COLOR_LIGHTRED,"Vocк nгo pode usar este comando preso!"); return 1; }
Код:
if(strcmp(cmd,"/entrarorg",true)==0) { if(PlayerPaintballing[playerid] != 0) { SendClientMessage(playerid,COLOR_GREY," Vocк nгo entrar em organizaзхes no evento!"); return 1; } if(PlayerInfo[playerid][pJailed] != 0) { SendClientMessage(playerid,COLOR_GREY," Vocк nгo pode entrar em organizaзхes preso!"); return 1; } if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pVIP] > 3 || PlayerInfo[playerid][pVIP] > 4) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Esse comando sу pode ser usado por jogadores Sуcio"); return 1; } new x_nr[32]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COR_VAGOS, "{00FFFF}USE: /entrarorg [Nъmero da ORG]"); SendClientMessage(playerid, COLOR_WHITE, "1: {D2691E}(Policia Militar){D3D3D3} 2: {D2691E}(BOPE){D3D3D3} 3: {D2691E}(Exercito){D3D3D3} 4: {D2691E}(SA:MU){D3D3D3} 5: {D2691E}(Aztecas)"); SendClientMessage(playerid, COLOR_WHITE, "6: {D2691E}(Taliban){D3D3D3} 7: {D2691E}(Governo){D3D3D3} 8: {D2691E}(Hitmans){D3D3D3} 9: {D2691E}(Reporteres){D3D3D3} 10: {D2691E}(Taxistas)"); SendClientMessage(playerid, COLOR_WHITE, "11: {D2691E}(Policia Federal){D3D3D3} 12: {D2691E}(Mafia Cosa Nostra){D3D3D3} 13: {D2691E}(Mafia Yakuza){D3D3D3} 14: {D2691E}(Groove Street)"); SendClientMessage(playerid, COLOR_WHITE, "15: {D2691E} (Al'qaeda){D3D3D3} 16: {D2691E}(Polнcia Civil){D3D3D3} 17: {D2691E}(Ballas){D3D3D3} 18: {D2691E}(Los Vagos){D3D3D3}"); SendClientMessage(playerid, COLOR_WHITE, "19: {D2691E}(Comando Vermelho) 20: {D2691E}(PCC) 21: {D2691E}(Sons Of Anarchy){D3D3D3} 22: {D2691E}(Mayans)"); SendClientMessage(playerid, COLOR_WHITE, "23: {D2691E}(Interpol){D3D3D3} 24: {D2691E}(Mecanicos){D3D3D3} 25: {D2691E}(Triads)"); return 1; } if(PlayerInfo[playerid][pMembro] != 0 || PlayerInfo[playerid][pLider] != 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "Voce precisa /pedircontas para trocar de organizaзao"); return 1; } if(WantedPoints[playerid] != 0) if(PlayerInfo[playerid][pEmprego] > 2) { SendClientMessage(playerid, COLOR_LIGHTRED, "Voce possui uma profissao /sairdoemprego."); return 1; } if(PlayerInfo[playerid][pJailed] != 0) { SendClientMessage(playerid,COLOR_LIGHTRED,"Vocк nгo pode usar este comando preso!"); return 1; } |
if(strcmp(cmd, "/entrarorg", true) == 0)
{
if(PlayerInfo[playerid][pSocio] < 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й Socio!");
return 1;
}
if(PlayerInfo[playerid][pVIP] > 3 || PlayerInfo[playerid][pVIP] > 4)
if(PlayerInfo[playerid][pVIP] > 3)
if(strcmp(cmd,"/entrarorg",true)==0) { if(PlayerPaintballing[playerid] != 0) { SendClientMessage(playerid,COLOR_GREY," Vocк nгo entrar em organizaзхes no evento!"); return 1; } if(PlayerInfo[playerid][pJailed] != 0) { SendClientMessage(playerid,COLOR_GREY," Vocк nгo pode entrar em organizaзхes preso!"); return 1; } if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pVIP] > 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Esse comando sу pode ser usado por jogadores Sуcio"); return 1; } new x_nr[32]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COR_VAGOS, "{00FFFF}USE: /entrarorg [Nъmero da ORG]"); // ENTRADA DE ORG SУCIO SendClientMessage(playerid, COLOR_WHITE, "1: {D2691E}(Policia Militar){D3D3D3} 2: {D2691E}(BOPE){D3D3D3} 3: {D2691E}(Exercito){D3D3D3} 4: {D2691E}(SA:MU){D3D3D3} 5: {D2691E}(Aztecas)"); SendClientMessage(playerid, COLOR_WHITE, "6: {D2691E}(Taliban){D3D3D3} 7: {D2691E}(Governo){D3D3D3} 8: {D2691E}(Hitmans){D3D3D3} 9: {D2691E}(Reporteres){D3D3D3} 10: {D2691E}(Taxistas)"); SendClientMessage(playerid, COLOR_WHITE, "11: {D2691E}(Policia Federal){D3D3D3} 12: {D2691E}(Mafia Cosa Nostra){D3D3D3} 13: {D2691E}(Mafia Yakuza){D3D3D3} 14: {D2691E}(Groove Street)"); SendClientMessage(playerid, COLOR_WHITE, "15: {D2691E} (Al'qaeda){D3D3D3} 16: {D2691E}(Polнcia Civil){D3D3D3} 17: {D2691E}(Ballas){D3D3D3} 18: {D2691E}(Los Vagos){D3D3D3}"); SendClientMessage(playerid, COLOR_WHITE, "19: {D2691E}(Comando Vermelho) 20: {D2691E}(PCC) 21: {D2691E}(Sons Of Anarchy){D3D3D3} 22: {D2691E}(Mayans)"); SendClientMessage(playerid, COLOR_WHITE, "23: {D2691E}(Interpol){D3D3D3} 24: {D2691E}(Mecanicos){D3D3D3} 25: {D2691E}(Triads)"); return 1; } if(PlayerInfo[playerid][pMembro] != 0 || PlayerInfo[playerid][pLider] != 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "Voce precisa /pedircontas para trocar de organizaзao"); return 1; } if(WantedPoints[playerid] != 0) if(PlayerInfo[playerid][pEmprego] > 2) { SendClientMessage(playerid, COLOR_LIGHTRED, "Voce possui uma profissao /sairdoemprego."); return 1; } if(PlayerInfo[playerid][pJailed] != 0) { SendClientMessage(playerid,COLOR_LIGHTRED,"Vocк nгo pode usar este comando preso!"); return 1; }