pull in car cmd - HELP PLEASE
#1

Hello to all.
I find few topics about /pu cmd, i try to add one in mu gf mod, compile everything is ok. BUT problem is that everybody when type /pu in console get message USE:/PU ID SEAT but i want that just cops, fbi and nacional guard can use that command.

I try on other player to pull him in vehcile and i get message YOU MUST BE COP.

Pd is organisation number 1
F.B.I number 2
GUARD number 3

I dont know how ti script it i try 1000000 times.

can somebody give mi codes here that word 100%.just please dont give me links becouse i search on this forum and finde 1000 cmd and noone work.
Reply
#2

If you've searched & tried 1000 commands one has bound to work.
Keep trying. If you honestly can't script; get rid of your Godfather script and work on something smaller.
Reply
#3

maybe i cant script but i need some help, some instructions, i search on wiki and i cant learn thet from there
Reply
#4

Just put an if statement in the command checking if the player is in one of those factions ( Using the gamemode variables that check in what group they are ).

It would look something like this.

pawn Код:
if(strcmp(/pu command))
{
  if(YourFactionVariable[playerid] > 3 && YourFactionVariable[playerid] < 1) return SendClientMessage(playerid, color, " You must be a cop.");
  // Perform command here.
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)