23.10.2011, 20:00
pawn Код:
if ( IsPlayerInDynamicCP( playerid, Challange1) )//2382 line
{
if ( IsPlayerInDynamicCP( playerid, Challange1) )
{
new Moneys = 1000 + random( 7000 ),
Score = 30 + random( 10 ),
Cookies = 10 + random( 20 ),
String[ 256 ];
foreach(Player, i)
{
if ( i != playerid )
{
FormMessage( i, -1, ""COL_OGREEN"%s{FFFFFF} has finished The Big Jump 1 Challange, and won a prize!", PlayerName2( playerid ) );
}
}
format( String, sizeof String, " ~g~ FINISHED~n~~n~~w~You finished the Big Jump Challange!~n~~n~~g~ REWARD!~n~~W~Cash:~g~~h~$%d~n~~w~Score: ~g~~h~%d~n~~w~Cookies: ~g~~h~%d",Moneys, Score, Cookies );
Info( playerid, String,12000);
SetPlayerScore( playerid, GetPlayerScore( playerid ) + Score );
GivePlayerMoney( playerid, Moneys );
{
DestroyDynamicCP( Challange1);
}
}
return 1;//2408 line
}