19.10.2010, 13:48
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.
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; } }