Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted

cum pun if(WantedPoints[playerid] > 0) in

GetPlayerName(playerid, pName, 24);
   	switch(reason)
   	{
  		case 0: format(str, 128, "HQ: Suspect: %s has left. Reason: Crash", pName);
		case 1: format(str, 128, "HQ: Suspect: %s has left. Reason: /quit", pName);
   	}
   	SendCopMessage(TEAM_BLUE_COLOR, str);

?:D

3 answers to this question

Recommended Posts

Posted

GetPlayerName( playerid, pName, MAX_PLAYER_NAME );

if( GetPlayerWantedLevel( playerid ) > 0 )

{

  switch( reason )

  {

  case 0: format(str, 128, "HQ: Suspect: %s has left. Reason: Crash", pName);

case 1: format(str, 128, "HQ: Suspect: %s has left. Reason: /quit", pName);

  }

}

SendCopMessage( TEAM_BLUE_COLOR, str );

142sj0l.png

Underground-GFX

Posted

GetPlayerName( playerid, pName, MAX_PLAYER_NAME );

if( GetPlayerWantedLevel( playerid ) > 0 )

{

  switch( reason )

  {

  case 0: format(str, 128, "HQ: Suspect: %s has left. Reason: Crash", pName);

case 1: format(str, 128, "HQ: Suspect: %s has left. Reason: /quit", pName);

  }

}

SendCopMessage( TEAM_BLUE_COLOR, str );

si ce face daca el nu are stelutele incluse in gamemode?


new sendername[ MAX_PLAYER_NAME ];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedPoints[playerid] >= 1)
{
      switch(reason)
      {
              case 0:  format(str, 128, "HQ: Suspect: %s has left. Reason: Crash", sendername);
              case 1: format(str, 128, "HQ: Suspect: %s has left. Reason: /quit", sendername);
      }
      SendCopMessage(TEAM_BLUE_COLOR,str);
}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.