Guten Tag Communinty,
Ich habe heute einen Befehl für die Gangs/Mafien gemacht wo sie die Waffen bekommen.
Hier mit dem code was zwar net funktioniert :
[pwn]
if (strcmp(cmdtext, "/gmwaffen", true) == 0) { if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23 || IsACop(playerid)) if(IsPlayerInRangeOfPoint(playerid, 5.0, 2580.2026,2329.1667,17.8222)) { GivePlayerMoney(playerid, -1350); SetPlayerHealth(playerid,100); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,29,900); GivePlayerWeapon(playerid,30,1200); SendClientMessage(playerid,0xFF0037FF,"Du hast deine D.Eagle, MP5, AK47 bekommen und wurdest gehealt."); } else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || IsACop(playerid)) if(IsPlayerInRangeOfPoint(playerid, 5.0, 2601.5327,-1118.6202,66.8835)) { GivePlayerMoney(playerid, -1350); SetPlayerHealth(playerid,100); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,29,900); GivePlayerWeapon(playerid,30,1200); SendClientMessage(playerid,0xFF0037FF,"Du hast deine D.Eagle, MP5, AK47 bekommen und wurdest gehealt."); } else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || IsACop(playerid)) if(IsPlayerInRangeOfPoint(playerid, 5.0, 2527.9268,-1667.0073,15.16845)) { GivePlayerMoney(playerid, -1350); SetPlayerHealth(playerid,100); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,29,900); GivePlayerWeapon(playerid,30,1200); SendClientMessage(playerid,0xFF0037FF,"Du hast deine D.Eagle, MP5, AK47 bekommen und wurdest gehealt."); } else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 || IsACop(playerid)) if(IsPlayerInRangeOfPoint(playerid, 5.0, 1273.7312,-1640.1808,27.3750)) { GivePlayerMoney(playerid, -1350); SetPlayerHealth(playerid,100); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,29,900); GivePlayerWeapon(playerid,30,1200); SendClientMessage(playerid,0xFF0037FF,"Du hast deine D.Eagle, MP5, AK47 bekommen und wurdest gehealt."); } else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || IsACop(playerid)) if(IsPlayerInRangeOfPoint(playerid, 5.0, 2770.7825,-1628.1027,12.1775)) { GivePlayerMoney(playerid, -1350); SetPlayerHealth(playerid,100); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,29,900); GivePlayerWeapon(playerid,30,1200); SendClientMessage(playerid,0xFF0037FF,"Du hast deine D.Eagle, MP5, AK47 bekommen und wurdest gehealt."); } else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || IsACop(playerid)) if(IsPlayerInRangeOfPoint(playerid, 5.0,2136.5049,1451.0531,10.8203)) { GivePlayerMoney(playerid, -1350); SetPlayerHealth(playerid,100); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,29,900); GivePlayerWeapon(playerid,30,1200); SendClientMessage(playerid,0xFF0037FF,"Du hast deine D.Eagle, MP5, AK47 bekommen und wurdest gehealt."); } else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || IsACop(playerid)) if(IsPlayerInRangeOfPoint(playerid, 5.0,2841.9443,1291.5206,11.3906)) { GivePlayerMoney(playerid, -1350); SetPlayerHealth(playerid,100); GivePlayerWeapon(playerid,24,100); GivePlayerWeapon(playerid,29,900); GivePlayerWeapon(playerid,30,1200); SendClientMessage(playerid,0xFF0037FF,"Du hast deine D.Eagle, MP5, AK47 bekommen und wurdest gehealt."); } }
Hier der Pastebin davon, was funktioniert ;D :
Ich hoffe das ihr mir helfen könnt was daran fail ist.
MFG
TheEnd