Need Help fast,
#5

Quote:
Originally Posted by Micko123
Посмотреть сообщение
Its not going like that m8..

Read this https://sampforum.blast.hk/showthread.php?tid=581106

BUT READ DON'T COPY-PASTE
Don't mean to offend man but that does seem like alot of work for a simple task such as a coin flip.

OT: Try this sean,

PHP код:
stock GetCoilFlip(playerid)
{
    new 
string[64], playername[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayernamesizeof(playername));
    new 
coinflip;
    
coinflip random(2);//only two cases occur here and thats 0 and 1
    
if(coinflip == 0)
    {
        
format(string,sizeof(string),"%s flipped a coin! landed on heads",playername);
    }
    else
    {
        
format(string,sizeof(string),"%s flipped a coin! landed on tails",playername);
    }
    return 
string
Use it like this
PHP код:
SendClientMessage(playerid0xAFAFAFAAGetCoilFlip(playerid));
or
SendClientMessageToAll(0xAFAFAFAAGetCoilFlip(playerid)); 
You can use ProxDetector.. it's upto you
Reply


Messages In This Thread
Need Help fast, - by SeanDenZYR - 08.11.2016, 09:07
Re: Need Help fast, - by Micko123 - 08.11.2016, 09:17
Re: Need Help fast, - by SeanDenZYR - 08.11.2016, 09:29
Re: Need Help fast, - by Micko123 - 08.11.2016, 09:32
Re: Need Help fast, - by Killa[DGZ] - 08.11.2016, 09:32
Re: Need Help fast, - by Konstantinos - 08.11.2016, 09:35
Re: Need Help fast, - by SeanDenZYR - 08.11.2016, 09:39
Re: Need Help fast, - by Micko123 - 08.11.2016, 09:42
Re: Need Help fast, - by SeanDenZYR - 08.11.2016, 09:45
Re: Need Help fast, - by SeanDenZYR - 08.11.2016, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)