25.10.2013, 16:42
Which one is correct..
This:
or that:
This:
pawn Код:
if(strcmp(cmd, "/coin", true) == 0)
{
if(IsDown[playerid] == 1 || IsDown[playerid] == 2) { return SendClientMessage(playerid,0xFF0000AA,"You can't do this while incapacitated."); }
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new coin = random(2)+1;
new coinname[20];
if(coin == 1) { coinname = "head"; }
else { coinname = "tail"; }
format(string, sizeof(string), "*%s flips a coin that lands on a %s", sendername,coinname);
ProxDetector(8.0, playerid, string,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA);
}
if(Masked[playerid] == 1) string = "*Stranger flips a coin that lands on a %s";
else format(string, sizeof(string), "*%s flips a coin that lands on a %s", sendername,coinname);
ProxDetector(8.0, playerid, string,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA);
return 1;
}
pawn Код:
if(strcmp(cmd, "/coin", true) == 0)
{
if(IsDown[playerid] == 1 || IsDown[playerid] == 2) { return SendClientMessage(playerid,0xFF0000AA,"You can't do this while incapacitated."); }
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new coin = random(2)+1;
new coinname[20];
if(coin == 1) { coinname = "head"; }
else { coinname = "tail"; }
}
if(Masked[playerid] == 1) string = "*Stranger flips a coin that lands on a %s";
else format(string, sizeof(string), "*%s flips a coin that lands on a %s", sendername,coinname);
ProxDetector(8.0, playerid, string,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA,0x33CCFFAA);
return 1;
}