Help me
#1

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
Reply
#2

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.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)