CMD:comprararma(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010))
{
if((PlayerInfo[playerid][pGunLic]) == 0)
{
SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte.");
return 1;
}
ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair");
}
return 1;
}
CMD:comprararma(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010))
{
if(PlayerInfo[playerid][pGunLic]) == 0) return SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte.");
ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair");
}
return 1;
}
CMD:comprararma(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010))
{
if(PlayerInfo[playerid][pGunLic]) == 0) return SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte.");
ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair");
}
return 1;
}
CMD:comprararma(playerid, params[])
{
#pragma unused params
if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010))
{
if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte.");
ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair");
}
return 1;
}
PHP Code:
|
CMD:comprararma(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010))
{
if(PlayerInfo[playerid][pGunLic]) == 0) return SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte.");
ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair");
}
return 1;
}
Se nгo estб utilizando o parвmetro nгo tem pq colocar essa funзгo й sу apagar xD.
PHP Code:
|
CMD:comprararma(playerid, params[]) { #pragma unused params // Params pragma nгo utilizados if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010)) { if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte."); ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair"); } return 1; } |
CMD:comprararma(playerid) { #pragma unused params // Params pragma nгo utilizados if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.0516,-166.1417,999.6010)) { if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, 0xFF8000FF, "O atendente da Ammunation se recusa a vender armas sem o porte."); ShowPlayerDialog(playerid, DIALOG_MENU_DE_ARMAS, DIALOG_STYLE_LIST, "Menu de armas", "Armas branca\nPistolas\nEscopetas\nSub-Metralhadoras\nRifles de alto-calibre\nSnipers\nBombas\nUtilitбrios", "Abrir", "Sair"); } return 1; } |