01.07.2015, 00:44
pawn Код:
CMD:card(playerid, params[])
{
new string[128];
new cards[] =
{
"One",
"Two",
"Three",
"Four",
"Five",
"Six",
"Seven",
"Eight",
"Nine",
"Ten",
"Jack",
"Queen",
"King"
};
format(string, sizeof(string), "%s has pulled out a %s from his deck of cards.", PlayerName(playerid), cards[random(sizeof(cards))]);
SendClientMessage(playerid, COLOR_PURPLE, string);
I'm only knew to this, I'm sure this is an easy fix and will +rep with any help.