[Ajuda] Como Colocar /mochila sу para VIPS
#1

Quote:

#include a_samp
#include zcmd

#define azul 0x0000A0FF
#define amarelo 0xFFFF00FF

new arma1, arma2, arma3, arma4, arma5, arma6, arma7, arma8, arma9, arma10, arma11;
new ammo1, ammo2, ammo3, ammo4, ammo5, ammo6, ammo7, ammo8, ammo9, ammo10, ammo11;

public OnFilterScriptInit()
{
print("\n===========================");
print(" Sistema de Mochila by: joao");
print("===========================\n");
return 1;
}


CMD:creditos(playerid)
{
SendClientMessage(playerid,azul,"------------[CREDITOS]------------");
SendClientMessage(playerid,amarelo,"Comando mochila feito por {FFFFFF}joaot");
return 1;
}

CMD:mochila(playerid)
{
SendClientMessage(playerid,azul,"Use /guardar para guardar suas armas,");
SendClientMessage(playerid,amarelo,"Use /pegar para pegar suas armas.");
return 1;
}

CMD:guardar(playerid)
{
GetPlayerWeaponData(playerid, 1,arma1, ammo1);//GUARDA AS ARMA
GetPlayerWeaponData(playerid, 2,arma2, ammo2);
GetPlayerWeaponData(playerid, 3,arma3, ammo3);
GetPlayerWeaponData(playerid, 4,arma4, ammo4);
GetPlayerWeaponData(playerid, 5,arma5, ammo5);
GetPlayerWeaponData(playerid, 6,arma6, ammo6);
GetPlayerWeaponData(playerid, 7,arma7, ammo7);
GetPlayerWeaponData(playerid, 8,arma8, ammo;
GetPlayerWeaponData(playerid, 9,arma9, ammo9);
GetPlayerWeaponData(playerid, 10,arma10, ammo10);
GetPlayerWeaponData(playerid, 11,arma11, ammo11);
SendClientMessage(playerid,azul,"Vocк guardou suas armas.");
ResetPlayerWeapons(0);// RESETA AS ARMA
return 1;
}

CMDegar(playerid)
{
GivePlayerWeapon(playerid, arma1, ammo1);// PEGA AS ARMA
GivePlayerWeapon(playerid, arma2, ammo2);
GivePlayerWeapon(playerid, arma3, ammo3);
GivePlayerWeapon(playerid, arma4, ammo4);
GivePlayerWeapon(playerid, arma5, ammo5);
GivePlayerWeapon(playerid, arma6, ammo6);
GivePlayerWeapon(playerid, arma7, ammo7);
GivePlayerWeapon(playerid, arma8, ammo;
GivePlayerWeapon(playerid, arma9, ammo9);
GivePlayerWeapon(playerid, arma10, ammo10);
GivePlayerWeapon(playerid, arma11, ammo11);
SendClientMessage(playerid,amarelo,"Vocк pegou suas armas.");
return 1;
}

Galera queria Colocar /Mochila sу para VIPS e Sуcios Alguem me ajuda ae!
Reply
#2

pawn Код:
CMD:mochila(playerid)
{
if(variavelvip < 1) return SendClientMessage(playerid, -1, "Vocк nгo й um usuбrio vip");
SendClientMessage(playerid,azul,"Use /guardar para guardar suas armas,");
SendClientMessage(playerid,amarelo,"Use /pegar para pegar suas armas.");
return 1;
}

CMD:guardar(playerid)
{
if(variavelvip < 1) return SendClientMessage(playerid, -1, "Vocк nгo й um usuбrio vip");
GetPlayerWeaponData(playerid, 1,arma1, ammo1);//GUARDA AS ARMA
GetPlayerWeaponData(playerid, 2,arma2, ammo2);
GetPlayerWeaponData(playerid, 3,arma3, ammo3);
GetPlayerWeaponData(playerid, 4,arma4, ammo4);
GetPlayerWeaponData(playerid, 5,arma5, ammo5);
GetPlayerWeaponData(playerid, 6,arma6, ammo6);
GetPlayerWeaponData(playerid, 7,arma7, ammo7);
GetPlayerWeaponData(playerid, 8,arma8, ammo;
GetPlayerWeaponData(playerid, 9,arma9, ammo9);
GetPlayerWeaponData(playerid, 10,arma10, ammo10);
GetPlayerWeaponData(playerid, 11,arma11, ammo11);
SendClientMessage(playerid,azul,"Vocк guardou suas armas.");
ResetPlayerWeapons(0);// RESETA AS ARMA
return 1;
}

CMD:pegar(playerid)
{
if(variavelvip < 1) return SendClientMessage(playerid, -1, "Vocк nгo й um usuбrio vip");
GivePlayerWeapon(playerid, arma1, ammo1);// PEGA AS ARMA
GivePlayerWeapon(playerid, arma2, ammo2);
GivePlayerWeapon(playerid, arma3, ammo3);
GivePlayerWeapon(playerid, arma4, ammo4);
GivePlayerWeapon(playerid, arma5, ammo5);
GivePlayerWeapon(playerid, arma6, ammo6);
GivePlayerWeapon(playerid, arma7, ammo7);
GivePlayerWeapon(playerid, arma8, ammo;
GivePlayerWeapon(playerid, arma9, ammo9);
GivePlayerWeapon(playerid, arma10, ammo10);
GivePlayerWeapon(playerid, arma11, ammo11);
SendClientMessage(playerid,amarelo,"Vocк pegou suas armas.");
return 1;
Reply
#3

Quote:

C:\Users\cliente\Desktop\BCP\filterscripts\Mochila .pwn(2 : warning 203: symbol is never used: "guardar"
C:\Users\cliente\Desktop\BCP\filterscripts\Mochila .pwn(28 -- 44) : warning 203: symbol is never used: "mochila"
C:\Users\cliente\Desktop\BCP\filterscripts\Mochila .pwn(28 -- 44) : warning 203: symbol is never used: "pegar"
C:\Users\cliente\Desktop\BCP\filterscripts\Mochila .pwn(28 -- 44) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Deu erro!
Reply
#4

Alguem Ajuda Pfvr
Reply
#5

''CTRL + C'' e ''CTRL + V'' Da Nisso '-'
Reply
#6

posta um comando seu vip ai.
Reply
#7

Quote:

if(!strcmp(cmdtext,"/papagaio",true))
{
if(PlayerInfo[playerid][pVIP] < 1 && PlayerInfo[playerid][pSocio] >= 1)
{
SendClientMessage(playerid, 0xFFCC33FF, "Vocк nгo e um Player Vip ou Socio!");
return 1;
}
if(PlayerInfo[playerid][ppapa] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo tem um Papagaio");
return 1;
}

Aqui
Reply
#8

Quote:

if(!strcmp(cmdtext,"/papagaio",true))
{
if(PlayerInfo[playerid][pVIP] < 1 && PlayerInfo[playerid][pSocio] >= 1)
{
SendClientMessage(playerid, 0xFFCC33FF, "Vocк nгo e um Player Vip ou Socio!");
return 1;
}
if(PlayerInfo[playerid][ppapa] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo tem um Papagaio");
return 1;
}

Aqui
Reply
#9

Vocк nгo sabe, nem o que й uma variбvel?
Se usar, comandos em strcmp e zcmd й capaz de dar conflito.
Reply
#10

Nao, so noob Pawno to comeзando agora alguem ajuda pfbr
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)