[Tutorial] Simple /flipcoin command [ZCMD, sscanf, foreach]
#5

lol!(2)

PHP Code:
CMD:flipcoin(playeridparams[])

    new 
rand random(2); 
    if(
rand == ) return SendClientMessage(playerid, -1"+1 to CHANCE");
    else return 
SendClientMessage(playerid, -1"Chance is = '0'");
    return 
true

Reply


Messages In This Thread
Simple /flipcoin command [ZCMD, sscanf, foreach] - by NotYoMama - 10.07.2015, 17:21
Re: Simple /flipcoin command [ZCMD, sscanf, foreach] - by reyisgod - 15.07.2015, 12:17
Re: Simple /flipcoin command [ZCMD, sscanf, foreach] - by Calgon - 15.07.2015, 12:58
Re: Simple /flipcoin command [ZCMD, sscanf, foreach] - by Emmet_ - 15.07.2015, 13:02
Re: Simple /flipcoin command [ZCMD, sscanf, foreach] - by MellikJKE - 01.08.2015, 13:51
Re: Simple /flipcoin command [ZCMD, sscanf, foreach] - by Calgon - 01.08.2015, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)