14.06.2011, 19:20
I make this righ now
pawn Code:
if(strcmp(cmd, "/mission", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; ++i) {
if(IsPlayerConnected(i)) {
new RRandom = random(i);
}
}
new name[MAX_PLAYER_NAME];
GetPlayerName(RRandom, name, sizeof(name));
format(coordsstring, sizeof(coordsstring), "Player name is %s %i", name, RRandom);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
return 0x01;
}