22.07.2009, 10:43
pawn Код:
// ++ Top ++
#define MAX_CONDITIONS 4
#define NICE 0
#define STUPID 1
#define SWEET 2
#define ANGRY 3
new condition[MAX_PLAYERS];
// -- Top --
public OnPlayerConnect( playerid )
{
new randnum=random( MAX_CONDITIONS );
condition[playerid]=randnum;
// ++ Example ++
switch( condition[playerid] )
{
case 0: SendClientMessage( playerid, 0x0000FFFF, " ** Nicee **" );
case 1: SendClientMessage( playerid, 0x0000FFFF, " ** Stupid **" );
case 2: SendClientMessage( playerid, 0x0000FFFF, " ** Sweet **" );
case 3: SendClientMessage( playerid, 0x0000FFFF, " ** Angry **" );
}
// -- Example --
}