• Welcome to Vice City Multiplayer.
 

The question on the location

Started by theway, February 10, 2011, 03:06:32 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

theway

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 ..

BIG[H]

#1
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
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

theway

#2
how can i know the icon id ? , 
but i type  /set16 23 X Y Z

he say like this :  i don't know  commands

BIG[H]

I don't know Icons ID and u may test all 1 to 100 what ever
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

theway


shivambansal

type /c heal bcoz u are admin you i'll be healed :P

BIG[H]

sorry its /set 16
not /set16
try /set 16
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

theway

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

BIG[H]

yea you have to do this. cuz SendRconCommand not Working :(
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL


yazeen

It fucking crashes my server WTF!