Interior Name
#4

Quote:
Originally Posted by KillerDVX
Посмотреть сообщение
I'm not pretty sure, but you can try this :

PHP код:
public OnGameModeInit()
{
    
SetTimer("CheckInterior",3000,1);
    return 
1;
}
forward CheckInterior(playerid);
public 
CheckInterior(playerid)
{
        new 
string[128];
        
format(stringsizeof(string), "You are in : %i"GetPlayerInterior(playerid)); 
        
GameTextForPlayer(playeridstring30005);

Didn't issue the playerid. Should be onplayerconnect with the "i", playerid); parameter with SetTimerEx. He wants the name, if he wants the number he could of done /interior.

@OP, You could use OnInterior change for a player and use something like this:
PHP код:
    GetInteriorName(playerid)
    {
       switch(
GetPlayerInterior(playerid))
       {
           case 
1format(..
       }
    return 
1;
    } 
case 1 and that are interiors.
Reply


Messages In This Thread
Interior Name - by STONEGOLD - 24.06.2015, 13:21
Re: Interior Name - by SecretBoss - 24.06.2015, 13:29
Re : Interior Name - by KillerDVX - 24.06.2015, 13:30
Re: Re : Interior Name - by J0sh... - 24.06.2015, 13:32
Re: Re : Interior Name - by AndySedeyn - 24.06.2015, 13:37
Re : Re: Re : Interior Name - by KillerDVX - 24.06.2015, 13:39
Re: Re : Re: Re : Interior Name - by AndySedeyn - 24.06.2015, 13:42
Re: Interior Name - by STONEGOLD - 24.06.2015, 13:55
Re: Interior Name - by J0sh... - 24.06.2015, 13:57
Re: Interior Name - by AndySedeyn - 24.06.2015, 13:58

Forum Jump:


Users browsing this thread: 1 Guest(s)