Help me - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me (
/showthread.php?tid=657294)
Help me -
Blocked - 04.08.2018
Hi guys, i want help to Command to gang's for Example
Код:
if(!strcmp(cmdtext, "/ccdeagle", true))
{
GivePlayerWeapon(playerid, 24, 9000);
SendClientMessage(playerid, 0x00008BFF, "You Have Deagle Weapon, Have Fun");
return 1;
}
i want
1-i want only player in gang can use this command "you can type "test1" and i i will edit it no problem"
2-i want all in gang can know Anyone used command "you can type "test2" and i i will edit it no problem"
3-i want send message to all to anyone used command in CC "you can type "test3" and i i will edit it no problem"
Please help me, i'm new in script and don't know anything xD
-Thanks
Re: Help me -
RogueDrifter - 04.08.2018
Tell you what i'm gonna do instead, first of all you shouldn't use the OnPlayerCommandText normal command processor i adivce using ZCMD:
https://sampforum.blast.hk/showthread.php?tid=91354
Second of all indentation read this:
https://sampforum.blast.hk/showthread.php?tid=256961
1- Check on top if(!IsPlayerInGang) that will of course change depending on your variable then return SendClientMessage so they can't use the command.
2- Loop through all players using a 'for' loop or foreach and see if(IsPlayerInGang) SendClientMessage of course that will change depending on your variables and who is in that gang.
3- I don't even understand what you said there elaborate further.
Re: Help me -
Blocked - 04.08.2018
Quote:
Originally Posted by RogueDrifter
Tell you what i'm gonna do instead, first of all you shouldn't use the OnPlayerCommandText normal command processor i adivce using ZCMD: https://sampforum.blast.hk/showthread.php?tid=91354
Second of all indentation read this: https://sampforum.blast.hk/showthread.php?tid=256961
1- Check on top if(!IsPlayerInGang) that will of course change depending on your variable then return SendClientMessage so they can't use the command.
2- Loop through all players using a 'for' loop or foreach and see if(IsPlayerInGang) SendClientMessage of course that will change depending on your variables and who is in that gang.
3- I don't even understand what you said there elaborate further.
|
oh okay thanks for help, sry i just have less english xD