Virtualworld problem
#3

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Can you show the virtual world command please?
PHP код:
CMD:setvw(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < 2) return SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command.");
    new 
giveplayeridvw;
    if(
sscanf(params"ud"giveplayeridvw)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /setvw [player] [virtual world]");
    if(!
IsPlayerConnected(giveplayerid)) return SendClientMessageEx(playeridCOLOR_GREY"Invalid player specified.");
    new 
string[128];
    if(
GetPVarInt(giveplayerid"IsInArena") >= 0)
    {
        
SetPVarInt(playerid"tempPBP"giveplayerid);
        
format(stringsizeof(string), "%s (ID: %d) is currently in an active Paintball game.\n\nDo you want to force this player out?"GetPlayerNameEx(giveplayerid), giveplayerid);
        
ShowPlayerDialog(playeridPBFORCEDIALOG_STYLE_MSGBOX"Paintball"string"Yes""No");
        return 
1;
    }
    
PlayerInfo[giveplayerid][pVW] =  vw;
    
SetPlayerVirtualWorld(giveplayerid,  vw);
    
format(stringsizeof(string), "You have set %s's virtual world to %d."GetPlayerNameEx(giveplayerid),  vw);
    
SendClientMessageEx(playeridCOLOR_GRAD2string);
    return 
1;

Reply


Messages In This Thread
Virtualworld problem - by IndependentGaming - 04.10.2016, 16:32
Re: Virtualworld problem - by AndreiWow - 04.10.2016, 16:36
Re: Virtualworld problem - by IndependentGaming - 04.10.2016, 16:37
Re: Virtualworld problem - by AndreiWow - 04.10.2016, 16:52
Re: Virtualworld problem - by IndependentGaming - 04.10.2016, 17:35
Re: Virtualworld problem - by X337 - 04.10.2016, 17:43
Re: Virtualworld problem - by IndependentGaming - 04.10.2016, 17:58
Re: Virtualworld problem - by IndependentGaming - 04.10.2016, 19:00
Re: Virtualworld problem - by IndependentGaming - 04.10.2016, 21:05
Re: Virtualworld problem - by IndependentGaming - 05.10.2016, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)