04.12.2013, 13:04
pawn Код:
command(comprarbilhete , playerid , params [] )
{
* * *new _BileteCompra ;
* * *if ( _BilheteComprado [ playerid ] == 1 ) return SendClientMessage ( playerid , -1 , " Vocк ja tem um bilhetes " ) ;
* * *if ( sscanf ( params , "i" , _BileteCompra )) return SendClientMessage ( playerid , -1 , "Use : /comprarbilhete <0-70> " ) ;
* * *if ( 1 < _BileteCompra > 70 ) return SendClientMessage ( playerid , -1 , "Vocк so pode jogar de 1 a 70 " ) ;
* * *_Numero [ playerid ] = _BileteCompra ;
* * *_BilheteComprado [ playerid ] = 1 ;
* * *SendClientMessage ( playerid , -1 , "Bilhetes comprado .. ( /meusbilhetes)" ) ;
* * * RewardPlayer(playerid, -ValorBilhete);
* * *return 1 ;
}