Teleport info for all players?
#4

One more thing , please take a look at this code, when a player teleports to a certain place by FOOT, it says "[ ! ]{Name} teleported to LV [/lv] << works ... but when a player is in Vehicle, it says [ ! ] teleported to LV [/lv]" i mean the player's name wont show while in a vehicle, why?



PHP код:
if(strcmp("/lv",cmdtext,true) == 0)
{
    new 
vehicleid=GetPlayerVehicleID(playerid);
    new 
string[128];
    new 
name[MAX_PLAYER_NAME];
    if(
IsPlayerInAnyVehicle(playerid))
    {
        
SetPlayerPos(playerid,1907.1353,960.5406,10.8203);
        
SetVehiclePos(vehicleid,1907.1353,960.5406,10.8203);
        
format(stringsizeof(string), "[ ! ]%s has just teleported to LasVenturas [/lv]"name);
        
SendClientMessageToAll(COLOR_YELLOWstring);
        
PutPlayerInVehicle(playerid,vehicleid,0);
    }
    else
    {
    
SetPlayerPos(playerid,1907.1353,960.5406,10.8203);
    
GetPlayerName(playeridnamesizeof(name));
    
format(stringsizeof(string), "[ ! ]%s has just teleported to LasVenturas [/lv]"name);
    
SendClientMessageToAll(COLOR_YELLOWstring);
    }
    return 
1;

Reply


Messages In This Thread
Teleport info for all players? - by Wayn - 30.12.2011, 06:32
Re: Teleport info for all players? - by Ironboy - 30.12.2011, 06:42
Re: Teleport info for all players? - by Wayn - 30.12.2011, 06:44
Re: Teleport info for all players? - by Wayn - 31.12.2011, 06:05
Re: Teleport info for all players? - by James Coral - 31.12.2011, 06:08
Re: Teleport info for all players? - by coole210 - 31.12.2011, 06:10
Re: Teleport info for all players? - by Wayn - 31.12.2011, 06:33

Forum Jump:


Users browsing this thread: 1 Guest(s)