[Welp] How to make a /command when u type it again disable/remove something.
#2

i think this wont work but try
Код:
if(strcmp(cmd, "/tv", true) == 0) {
    if(IsPlayerHoldingObject[playerid] == 0)     {
    IsPlayerHoldingObject[playerid] == 1
    SendPlayerFormattedText(playerid,"You Now Are A TV Head!!.",0);
    new tv;
    tv = 1518;
    SetPlayerHoldingObject(playerid, tv, 2, 0000.23, 0000.0, 0000.0, 0000.0, 0085.0, 0180.0);
    } else {
    if(IsPlayerHoldingObject[playerid] == 0)     { StopPlayerHoldingObject(playerid);
    SendPlayerFormattedText(playerid,"You Now Are Not Anymore TV Head!!.",0);
        }
    return 1;
}

//and on top of script new IsPlayerHoldingObject[MAX_PLAYERS];
Reply


Messages In This Thread
[Welp] How to make a /command when u type it again disable/remove something. - by FluffyPawZ - 11.09.2010, 00:24
Re: [Welp] How to make a /command when u type it again disable/remove something. - by Dime - 11.09.2010, 03:08
Re: [Welp] How to make a /command when u type it again disable/remove something. - by FluffyPawZ - 11.09.2010, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)