HoldObject
#2

pawn Код:
if(strcmp(cmd, "/prillid", true) == 0)
    {
        if(PData[playerid][rprillid] != 0) {
            if(xrprillidx[playerid] == 0) {
                prilliobjekt[playerid] = SetPlayerAttachedObject(playerid, 2, PData[playerid][rprillid], 2, 0.09, 0.04, 0, 88, 75, 0);
                xrprillidx[playerid] = 1;
            }
            else if(xrprillidx[playerid] == 1) {
                RemovePlayerAttachedObject(playerid,prilliobjekt[playerid]);
                xrprillidx[playerid] = 0;
            }
        } else {
            Kiri(playerid, VALGE, "Sul ei ole prillid ostetud!");
        }
        return 1;
    }
Reply


Messages In This Thread
HoldObject - by Typhome - 25.03.2011, 09:44
Re: HoldObject - by Sascha - 25.03.2011, 10:27
AW: HoldObject - by Pablo Borsellino - 25.03.2011, 11:36
Re: HoldObject - by Typhome - 25.03.2011, 11:39
Re: AW: HoldObject - by Sascha - 25.03.2011, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)