Jump to content
  • 0

leave message for cops


qUick

Question

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

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);
}

Link to comment
Share on other sites

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.