18.02.2012, 20:02
pawn Код:
forward robbing( playerid );
public robbing( playerid )
{
new succed = random( 100 );
if( succeed >= 30 )
{
new str[ 128 ];
new moneyer = random( 10000 );
GivePlayerCash( playerid, moneyer );
format( str, 128, "You succesfully robbed the bank and got $%d!", moneyer );
SCM( playerid, COLOR_GREEN, str );
SetTimerEx( "canrobb", 1200000, false, "i", playerid );
}
else
{
SCM( playerid, COLOR_GREEN, "You failed at robbing the bank!" );
SetTimerEx( "canrobb", 1200000, false, "i", playerid );
}
return 1;
}