Author Topic: Cop and medic  (Read 2435 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Cop and medic
« on: June 06, 2011, 03:49:53 pm »
Cop
1. How do I add commands for cops to change to Swat or FBI?
2. How do I make cops vehicle only enterable by cops?

Medic
1. How do I do medic heal-only commands?

I use GUPS and Pawno!!
I'm beginning to feel like a Lag God, Lag God

Offline Castagna

  • VC:MP Beta Tester
  • Made Man
  • *
  • Posts: 129
  • Global Moderator
    • View Profile
Re: Cop and medic
« Reply #1 on: June 06, 2011, 08:48:05 pm »
[pawn]else if (strcmp(cmd, "!police", true) == 0)
   {
       SetPlayerSkin(playerid,1);
          }

      return 1

if (strcmp(cmd, "!paramedic", true) == 0)
   {
       SetPlayerSkin(playerid,5);
          }

      return 1;[/pawn]

Quote
2. How do I make cops vehicle only enterable by cops?
Sorry but i can't make you all the script, try to do it on your own.

Quote
How do I do medic heal-only commands?
The same as the first question... but i can give you a idea. You should disable the !heal for skins witch are not medics.
Castagna - EA Founder


Offline Pawno

  • Street Thug
  • *
  • Posts: 15
    • View Profile
Re: Cop and medic
« Reply #2 on: June 07, 2011, 05:33:57 am »
I know your doing this but I will not go:)
make your

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Cop and medic
« Reply #3 on: June 07, 2011, 03:46:24 pm »
Quote
Sorry but i can't make you all the script, try to do it on your own.
But I really don't know how.. :'( :'( :'(
I'm beginning to feel like a Lag God, Lag God

yazeen

  • Guest
Re: Cop and medic
« Reply #4 on: June 08, 2011, 11:25:40 am »
if u want the script i must start from first so ill give some examples

Use arrays like Cop[playerid] =1; Medic[playerid] =1;
and edit it from /c sethp in gups to if(Medic[playerid] =1) , tmp = plr , SetPlayerHealth(plr,100) , Setplayermoney(plr,123);
you can figure it out from these