Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: theway on February 10, 2011, 04:06:32 AM

Title: The question on the location
Post by: theway on February 10, 2011, 04:06:32 AM
Such us ,  i type /heal ,   but i am not in hospital.  So   "  u are not in the hosopital '

how can i Identify the location  , setplayerpos or ?


So , What how i can write in the pawno ..    I don' t know ..

and how can I  creat a icon  On the radar,,,   Thanks ..
Title: Re: The question on the location
Post by: BIG[H] on February 10, 2011, 06:21:54 AM
QuoteSuch us ,  i type /heal ,   but i am not in hospital.  So   "  u are not in the hosopital '

how can i Identify the location  , setplayerpos or ?


So , What how i can write in the pawno ..    I don' t know ..

and how can I  creat a icon  On the radar,,,   Thanks .

xD you are Using GUPS huh

So For Heal CMD Find this

Quoteelse if (strcmp(cmd, "!heal", true) == 0) {
       new Float:Health; GetPlayerHealth(playerid,Health);
                                       if(strcmp(GetPlayerLocation(playerid), "Hospital-Vice-Point-Vice-City-Beach", true) == 1)                                        

SendClientMessage(playerid,COLOR_GREEN, "You have to be at the hospital.");
         else if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
       else {
           SetPlayerHealth(playerid,100.0);
              SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
       }
       return 1;
}

Change it TO this :
Quoteelse if (strcmp(cmd, "!heal", true) == 0) {
     new Float:Health; GetPlayerHealth(playerid,Health);

       if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
     else {
        SetPlayerHealth(playerid,100.0);
           SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
     }
     return 1;
}

And If you want To Create icon i have Solution But In pawn SendRconCommand is Bugged xD


so Login as admin type in game
your rcon password from server.cfg

Quote/admin rcon_password

then type
Quote/s iconbla
it will give u Coords then Hurry Don't miss the Coordsor anyone will with Talk will remove it
your coords will be Look like this

Class :0 0 0 0 Pos:x Pos:y Pox:z Angle 0 0 0 0
pos are Numbers of map where u are standing
then type
Quote/set 16 Icon-ID Pos:x Pos:y Pos:z
for Easy i give u example

i type
Quote/s posicon

then it comes
QuoteClass : 0 0 0 0 -396.45454 324.68541 -435.4442 29.54544 0 0 0 0
and next i type
without angle and Zero's
with Icon ID
Quote/set 16 23 -396.45454 324.68541 -435.4442
EDIT: the icon comes for Player who are in game not for then who after icon appear Connect server you will have to type it again when some one connect's
Title: Re: The question on the location
Post by: theway on February 11, 2011, 05:45:44 AM
how can i know the icon id ? , 
but i type  /set16 23 X Y Z

he say like this :  i don't know  commands
Title: Re: The question on the location
Post by: BIG[H] on February 11, 2011, 08:46:56 PM
I don't know Icons ID and u may test all 1 to 100 what ever
Title: Re: The question on the location
Post by: theway on February 12, 2011, 02:11:29 AM
/set16   ( is not work)
Title: Re: The question on the location
Post by: shivambansal on February 12, 2011, 07:05:37 AM
type /c heal bcoz u are admin you i'll be healed :P
Title: Re: The question on the location
Post by: BIG[H] on February 12, 2011, 02:56:17 PM
sorry its /set 16
not /set16
try /set 16
Title: Re: The question on the location
Post by: theway on February 14, 2011, 04:22:48 AM
yeah man /set 16  is work,

but when i leave the server,    and join the server again ,  I can't see the  icon

/set 16 again?    so many player leave and join,  I don't want /set 16  too much
Title: Re: The question on the location
Post by: BIG[H] on February 14, 2011, 08:10:11 AM
yea you have to do this. cuz SendRconCommand not Working :(
Title: Re: The question on the location
Post by: theway on February 14, 2011, 08:50:46 AM
SO bad  :)
Title: Re: The question on the location
Post by: yazeen on March 19, 2011, 09:22:22 AM
It fucking crashes my server WTF!