[Help] /equip help
#1

Hey,

Im trying to make a Gang Equip
so when people go inside their HQ they can do /equip
i have a code already but i don't think it works.

Hope someone can help thanks.

Код:
if(strcmp(cmd, "/equip", true) == 0)
{
new playhq = PlayerInfo[playerid][pGang]-1;
if (PlayerToPoint(50, playerid,HQInfo[playhq][hqExitx], HQInfo[playhq][hqExity], HQInfo[playhq][hqExitz]))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s gets equipped", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
if ((HQInfo[playhq][hqGun1])||(HQInfo[playhq][hqGun2])||(HQInfo[playhq][hqGun3])||(HQInfo[playhq][hqGun4]) > 1)
{
GivePlayerWeapon(playerid,HQInfo[playhq][hqGun1],HQInfo[playhq][hqAmo1]);
GivePlayerWeapon(playerid,HQInfo[playhq][hqGun2],HQInfo[playhq][hqAmo2]);
GivePlayerWeapon(playerid,HQInfo[playhq][hqGun3],HQInfo[playhq][hqAmo3]);
GivePlayerWeapon(playerid,HQInfo[playhq][hqGun4],HQInfo[playhq][hqAmo4]);
GivePlayerWeapon(playerid,HQInfo[playhq][hqGun5],HQInfo[playhq][hqAmo5]);
}
if (HQInfo[playhq][hqHel] == 1){SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid, TEAM_GREEN_COLOR,"You have been healed to 100 health");
}
if (HQInfo[playhq][hqArm] == 1)
{
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid, TEAM_GREEN_COLOR,"You have been healed to 100 health");
}
format(string, sizeof(string), "You picked up some weapon's");
SendClientMessage(playerid, TEAM_GREEN_COLOR,string);printf("%s", string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You are not in a gang HQ");
return 1;
}
}
Reply
#2

can you use [PAWN] [/PAWN ] please?
Reply
#3

you have tested it?
Reply
#4

There you go
Reply
#5

gigi its from my gm its what the police use on the server to equip but i want to know how to add it n to change it so i can use it for gangs
Reply
#6

Quote:
Originally Posted by Tom1412
Посмотреть сообщение
gigi its from my gm its what the police use on the server to equip but i want to know how to add it n to change it so i can use it for gangs
Ask the creator of the Gamemode for some help
Reply
#7

steven i can't ask him because i dont know who made it, i got it from a mate and hes inside now(jail) so im a bit stuck thats why i posted here.

can't anyone help me?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)