[Ajuda] Mundo virtual e /refresh
#4

Quote:
Originally Posted by Case Sensitive
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/refresh", true) == 0)
{
    if(GetPlayerInterior(playerid) => 1) return SendClientMessage(playerid,-1,"Comando Proibido em Interiores");
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid,0);
    TextDrawHideForPlayer(playerid,lbt);
    TextDrawHideForPlayer(playerid,lbb);
    SendClientMessage(playerid,COLOR_YELLOW,"Refresh feito com sucesso, se ainda estiver com problemas fale com um admin!");
    return 1;
}
pawn Код:
if(GetPlayerVirtualWorld(playerid) == 1)
{
    CreateDynamicObject(4571,2009.90002441,-155.00000000,256.29998779,0.00000000,0.00000000,0. 00000000); sу
}
pawn Код:
COMMAND:setvw(playerid, params[])
{
    static ID, VW;
    if(sscanf("ui", ID, VW)) return SendClientMessage(playerid, -1, "/SetVW [playerid] [VW]");
    SetPlayerVirtualWorld(ID, VW);
    return 1;
}
pawn Код:
new Bike;
Bike = CreateVehicle(468,-1445.6392,-592.3033,1055.7831,90.2133,-1,-1,600); //

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(Bike = vehicleid)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1) return 1;
        else return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, -1, "You're not a Admin!");
    }
    return 1;
}
you can create the /setvw in strcmp?
here for misteques motives the pawn give me a error and dont compile, but i put the sscanf2 at the top and the new include 2.0 // sorry for the bad english.
thank you!
Reply


Messages In This Thread
[Ajuda] Mundo virtual e /refresh - by ceesar90 - 10.10.2011, 14:56
Re: [Ajuda/Dъvida] Mundo virtual e /refresh - by Vai_Besta - 10.10.2011, 15:06
Re: [Ajuda/Dъvida] Mundo virtual e /refresh - by Case Sensitive - 10.10.2011, 15:16
Re: [Ajuda/Dъvida] Mundo virtual e /refresh - by ceesar90 - 10.10.2011, 16:16
Re: [Ajuda/Dъvida] Mundo virtual e /refresh - by Shelby - 10.10.2011, 17:07
Re: [Ajuda/Dъvida] Mundo virtual e /refresh - by ceesar90 - 10.10.2011, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)