Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Fuzzy168 on June 06, 2011, 03:49:53 pm

Title: Cop and medic
Post by: Fuzzy168 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!!
Title: Re: Cop and medic
Post by: Castagna 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.
Title: Re: Cop and medic
Post by: Pawno on June 07, 2011, 05:33:57 am
I know your doing this but I will not go:)
make your
Title: Re: Cop and medic
Post by: Fuzzy168 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.. :'( :'( :'(
Title: Re: Cop and medic
Post by: yazeen 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