Search Results
Poste o seu OnPlayerDeath.
291
PHP Code:
if( !strcmp( cmdtext, "/iniciarderby", true ) )
{
   if( PlayerInfo[ playerid ][ pAdmin ] < 4 ) return SendClientMessage( playerid, COLOR_GRAD1, "Vocк nгo te...
230
Quote:
Originally Posted by Shadoww5
Toda array ao ser criada й definida com zero.
Entretanto, caso eu reinicie o servidor, os avisos permanecem, a nгo ser que o jogador saia do jogador...
505
Dependendo do sistema, temos de ver o nÑŠmero de cells que iremos usar.
Caso faзa isto:
PHP Code:
new sStr[ 128 ];
format( sStr, sizeof( sStr ), "%s disse oi", true ) )Â
Ele sÑ...
546
PHP код:
DisablePlayerCheckpoint( playerid );Â
309
PHP код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
   #define PRESSED( %0 ) \
    ( ( ( newkeys & ( %0 ) ) == ( %0 ) ) && ( ( ol...
395
O nome da tecla estб correta?
395
pawn Код:
if(strcmp(cmd,"/ban",true) == 0){Â Â tmp = strtok(cmdtext, idx);Â Â GetPlayerName(playerid, sendername, sizeof(sendername));Â Â Â Â PlayerInfo[playerid][pAdmin] = dini_Int(udb_en...
380
Se quiser que sу diga que o jogador saiu:
PHP код:
format( string, sizeof( string ), "{37FF69}%s(%d) saiu do servidor.", name, playerid );
SendClientMessageToAll( -1, string ); ...
144
PHP код:
new kNome[ MAX_PLAYER_NAME ], kNome2[ MAX_PLAYER_NAME ], kJ;
if( !strcmp( cmdtext, "/kBan", true ) )
{
   if( PlayerInfo[ playerid ][ pAdmin ] >= 1 )
   ...
380
@Shadoww5
PHP код:
new Aviso[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
    Aviso[playerid] = 0;
    return 1;
}Â
Para quк complicar?
PHP код:
new Aviso[ MAX...
505
PHP код:
new kUso;
public OnPlayerStateChange( playerid, newstate, oldstate )
{
   if( kUso[ playerid ] == 0 )
   {
      SendClientMessage( playerid, -1, "Ninguйm ...
267
Tem aн alguns erros, a variavel "derbyiniciado" nem playerid deveria levar.
PHP код:
new dIniciado;
new dEvento;
new jEvento[ MAX_PLAYERS ] = 0;
if( !strcmp( cmdtext, "/entrarderby"...
248
PHP код:
ShowPlayerDialog(playerid, REGIOES, DIALOG_STYLE_LIST, "ESCOLHA A REGIAO DE SUA TORCIDA", "Sudeste\nSul e Centro-Oeste\nNordeste e Norte", "Selecionar", "Cancelar");Â
408
PHP код:
static sStr[ 128 ];
format(sStr, sizeof(sStr),"<< O Hitman Cumpriu o contrato em %s e recebeu R$%d >>",PlayerName(playerid),PlayerInfo[playerid][pHeadValue],...
525
Exemplo:
PHP код:
public OnPlayerSpawn( playerid )
{
   for( new i = 0; i <= MAX_PLAYERS; i++ )
   {
      if( IsPlayerConnected( i ) )
      {
      ...
420
Quote:
Originally Posted by Andrew_Guiga
no OnPlayerUpdate ira lagar seu servidor pelo que eu sei...
Depende para o que for usado... Nas funзхes que uso no meu gamemode, jб tentei em...
573
@Shadoww5
Nгo tem necessidade nenhuma de usar include a_players, o prфprio a_samp jб lк.
@Topic
Atualize os seus includes!
311
Coloque isto no final do seu gamemode/filterscript:
PHP код:
strtok( const string[], &index )
{
   new length = strlen( string );
   while ( ( index < length ) &am...
207
Ou:
PHP код:
public OnPlayerCommandText( playerid, cmdtext[] )
{
   if( !strcmp( cmdtext, "/kReparar", true ) )
   {
      new kVeiculo = GetPlayerVehicleID( playeridÂ...
621