Gang Create
#1

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

Anyone can Give me a link for help pls?
Reply
#3

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!
Reply
#4

Could You Make a Example on how to do it pls sorry
Reply
#5

And Im Using OnPlayerCommandText^
Reply
#6

Could You Please Help
Reply
#7

Can Someone Help Me In This Please
Reply
#8

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)