Gang Create - 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: Gang Create (
/showthread.php?tid=435286)
Gang Create -
CurlyPwn - 06.05.2013
Look Leme Give Example: There Is A Icon....When Ppl Press What Ever Alt Or Shift They Join The Gang And Then When They Write /leave They Leave it. Can Someone Help?
Re: Gang Create -
CurlyPwn - 06.05.2013
Anyone can Give me a link for help pls?
Re: Gang Create -
lQs - 06.05.2013
Its easy, just create in your enum something like pGang and create a command to join it.
pawn Код:
CMD:join(playerid, params[])
{
if(PlayerInfo[playerid][pGang] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "You are in our gang already, fool!");
PlayerInfo[playerid][pGang] = 1;
// create some functions here, like SetPlayerColor n' shit.
SendClientMessage(playerid, COLOR_GRAD2, "You've joined our gang!");
return 1;
}
And then leave.
pawn Код:
CMD:leave(playerid, params[])
{
if(PlayerInfo[playerid][pGang] == 0) return SendClientMessage(playerid, COLOR_GRAD2, "You are not in any gang, fool!");
PlayerInfo[playerid][pGang] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "You are free, go fuck some bitches!");
return 1;
}
Remember about +rep if this help you!
Re: Gang Create -
CurlyPwn - 06.05.2013
Could You Make a Example on how to do it pls

sorry
Re: Gang Create -
CurlyPwn - 06.05.2013
And Im Using OnPlayerCommandText^
Re: Gang Create -
CurlyPwn - 06.05.2013
Could You Please Help
Re: Gang Create -
CurlyPwn - 06.05.2013
Can Someone Help Me In This Please
Re: Gang Create -
lQs - 06.05.2013
You should use ZCMD, you can download it here:
CLICK.
Its a lot faster, and you can create command just using:
pawn Код:
CMD:example(playerid,params[])
{
// functions here.
return 1;
}