Help me out here
#3

pawn Код:
if(IsPlayerAdmin(playerid))
    {
        if(EditingObject[playerid] == 1) return SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You're already editing an object! Use /saveobject to save it! Or use /abort to cancel this object!");

        new Float:X, Float:Y, Float:Z, str[256];
        if(sscanf(params, "d", newobj)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /create <objectid>");
        if(newobj > 15000 || newobj < 1) return SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: Invalid objectid!");

        GetPlayerPos(playerid, X, Y, Z);
        EditingObject[playerid] = 1;
        Object = CreateObject(newobj, X+5, Y+5, Z, 0, 0, 0);
        format(str, sizeof str, "Succesfully placed object: %d on the coordinates: %.2f, %.2f, %.2f!", newobj, X, Y, Z);
        SendClientMessage(playerid, COLOR_GREEN, str);
        oX = X+3;
        oY = Y+3;
        oZ = Z;
    }
    else
    {
        SendClientMessage(playerid, 0xF50A1CFF, "You are not a admin!!");
    }
    return 1;
Try it.
Reply


Messages In This Thread
Help me out here - by FireCat - 29.08.2010, 14:22
Re: Help me out here - by FireCat - 29.08.2010, 14:28
Re: Help me out here - by Jeffry - 29.08.2010, 14:37
Re: Help me out here - by FireCat - 29.08.2010, 14:40
Re: Help me out here - by Jeffry - 29.08.2010, 14:44
Re: Help me out here - by FireCat - 29.08.2010, 15:10
Re: Help me out here - by Jeffry - 29.08.2010, 15:16

Forum Jump:


Users browsing this thread: 3 Guest(s)