SA-MP Forums Archive
Hi help me plz - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Hi help me plz (/showthread.php?tid=249364)



Hi help me plz - donviper96 - 18.04.2011

Hi.. i found here on this forum a FilterSript with /createstrip.. well i want to put it into my gamemode and make it only for LSPD,FBI and NG to can use.. if u can help me plz post here... the command is:


Код:
if (strcmp(cmd,"/createstrip",true) == 0)
	{
    if(IsPlayerConnected(playerid))
	    {
		    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
			{
	    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
        GetPlayerPos(playerid, plocx, plocy, plocz);
        GetPlayerFacingAngle(playerid,ploca);
        CreateStrip(plocx,plocy,plocz,ploca);
	    return 1;
	}
	else if (strcmp(cmd,"/removestrip",true) == 0)
	{
        DeleteClosestStrip(playerid);
	    return 1;
	}
	else if (strcmp(cmd,"/removeallstrip",true) == 0)
	{
        DeleteAllStrip();
	    return 1;
	}