SA-MP Forums Archive
Marker - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Marker (/showthread.php?tid=383950)



Marker - Mustafa6155 - 09.10.2012

Hey guys how add something in a marker like only for an skin?
some firefighter go to an marker(in his base) and he can refuel his fire ammo ??


Re: Marker - gtakillerIV - 09.10.2012

PHP код:
public OnPlayerEnterCheckpoint(playerid// This callback is called when a player enters a checkpoint.
{
    if(
GetPlayerSkin(playerid) == 277// Here we are checking if the playerid's skin is 277 which is the fire fighter skin.
    
{
        
GivePlayerWeapon(playerid,421200); // Here we are giving the player the fire extinguisher(ID:42).
    
}
             else 
// If he is not a Fire Fighter.
    
{
        
SendClientMessage(playerid,-1,"You must be a fire fighter to use this checkpoint!");// Here we are sending him a message saying that he must be a Fire Fighter to use this checkpoint.
    
}
    return 
1;

Change the weapon to any weapon ID you want and change the skin ID if you want.


Re: Marker - Mustafa6155 - 10.10.2012

but what to do if i got more markers??


Re: Marker - JaKe Elite - 10.10.2012

use Streeamer.


Re: Marker - Mustafa6155 - 10.10.2012

i meen an circle where u go up and choose an gun and armor?? for more checkpoints
And ****** I read u topic can u help me i go SII and Y_ini But i register but he dont save it