Jump to content

Question

Posted

Salutare, am facut integrat un mapicon intr-o comanda :

[pawn]                        if(PlayerInfo[playerid][pLevel] < 4 )

{

  SetPlayerMapIcon(playerid, 15, 1892.8780,1596.8157,10.0991, 18, 0, MAPICON_GLOBAL_CHECKPOINT ); // Materials Deliver

  SendClientMessage ( playerid,0xFFFFFFFF, ""#INFO"[iNFO] "#ALB"Pentru ca esti incepator, ti-am setat un icon pe harta.Dute la el sa duci materialele. ");

}[/pawn]

[pawn]                        if(PlayerInfo[playerid][pLevel] < 4 )

{

              RemovePlayerMapIcon( playerid, 15 ); // Materials deliver

}[/pawn]

Merge, totul e ok. Doar ca, cand playeru da de exemplu /w sau oricare alta comanda si serveru ii trimite un raspuns tip : this player is not  connected, dispare icon-map`u dupa harta.

2 answers to this question

Recommended Posts

Posted

Mai bine stergi astea doua:

if(PlayerInfo[playerid][pLevel] < 4 )
						{
						   SetPlayerMapIcon(playerid, 15, 1892.8780,1596.8157,10.0991, 18, 0, MAPICON_GLOBAL_CHECKPOINT );	// Materials Deliver
						   SendClientMessage ( playerid,0xFFFFFFFF, ""#INFO"[INFO] "#ALB"Pentru ca esti incepator, ti-am setat un icon pe harta.Dute la el sa duci materialele. ");
						}
if(PlayerInfo[playerid][pLevel] < 4 )
						{
			               RemovePlayerMapIcon( playerid, 15 ); // Materials deliver
						}
si adaugi la OnPlayerConnect(playerid) doar
SetPlayerMapIcon(playerid, 15, 1892.8780,1596.8157,10.0991, 18, 0, MAPICON_GLOBAL_CHECKPOINT );	// Materials Deliver

i0418xcttya707ofg.jpg

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.