03.08.2010, 19:09
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);
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;
}