SetObjectWorld
#5

pawn Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);

Example:

//This will create an object in virtual world 10
CreateDynamicObject(1225, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 10, -1, -1, 200.0);
And for the commands you can check if the player is in a certain virtual world:

pawn Код:
if(!strcmp(cmdtext, "/kill", true, 5))
{
    if(GetPlayerVirtualWorld(playerid) != 1) return SendClientMessage(playerid, 0xAFFFFAF, "ERROR: You are not in the Stunt virtual world");
    SetPlayerHealth(playerid, 0);
    return 1;
}
Reply


Messages In This Thread
SetObjectWorld - by Kevin_Joshen - 03.08.2010, 18:21
Re: SetObjectWorld - by iggy1 - 03.08.2010, 18:25
Re: SetObjectWorld - by Mauzen - 03.08.2010, 18:28
Re: SetObjectWorld - by Kevin_Joshen - 03.08.2010, 19:01
Re: SetObjectWorld - by PotH3Ad - 03.08.2010, 19:09
Re: SetObjectWorld - by Kevin_Joshen - 04.08.2010, 00:18
Re: SetObjectWorld - by PotH3Ad - 04.08.2010, 00:32

Forum Jump:


Users browsing this thread: 1 Guest(s)