SA-MP Forums Archive
pull in car cmd - HELP PLEASE - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: pull in car cmd - HELP PLEASE (/showthread.php?tid=108603)



pull in car cmd - HELP PLEASE - buonggiorno - 14.11.2009

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.


Re: pull in car cmd - HELP PLEASE - Abernethy - 14.11.2009

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.


Re: pull in car cmd - HELP PLEASE - buonggiorno - 14.11.2009

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



Re: pull in car cmd - HELP PLEASE - Donuts - 14.11.2009

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