How to make this CMD For SWAT??
#1

hi everyone how to make this Commands Only FOR SWAT? Please Help me Guyz

Код:
dcmd_spike(playerid,params[])
{
	#pragma unused params
	new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
    GetPlayerPos(playerid, plocx, plocy, plocz);
    GetPlayerFacingAngle(playerid,ploca);
    CreateSpike(plocx,plocy,plocz,ploca);
	SendClientMessage(playerid, -1, "/rspike to Remove This");
    return 1;
}
dcmd_rspike(playerid,params[])
{
	#pragma unused params
	for(new i = 0; i < sizeof(SpikeInfo); i++)
  	{
  	    if(IsPlayerInRangeOfPoint(playerid, 2.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
        {
  	        if(SpikeInfo[i][sCreated] == 1)
            {
                SpikeInfo[i][sCreated]=0;
                SpikeInfo[i][sX]=0.0;
                SpikeInfo[i][sY]=0.0;
                SpikeInfo[i][sZ]=0.0;
                DestroyObject(SpikeInfo[i][sObject]);
                return 1;
  	        }
  	    }
  	}
    return 1;
}
dcmd_rallspikes(playerid,params[])
{
    #pragma unused playerid
	#pragma unused params
	for(new i = 0; i < sizeof(SpikeInfo); i++)
  	{
  	    if(SpikeInfo[i][sCreated] == 1)
  	    {
  	        SpikeInfo[i][sCreated]=0;
            SpikeInfo[i][sX]=0.0;
            SpikeInfo[i][sY]=0.0;
            SpikeInfo[i][sZ]=0.0;
            DestroyObject(SpikeInfo[i][sObject]);
  	    }
	}
    return 1;
}
This is the Commands so now how to make it For SWAT Only ? [ SWAT Skin : 285 ]
So can you help me?
Reply


Messages In This Thread
How to make this CMD For SWAT?? - by Thanks - 15.12.2016, 13:06
Re: How to make this CMD For SWAT?? - by ISmokezU - 15.12.2016, 13:36
Re: How to make this CMD For SWAT?? - by iLearner - 15.12.2016, 13:40
Re: How to make this CMD For SWAT?? - by Thanks - 15.12.2016, 13:44
Re: How to make this CMD For SWAT?? - by ISmokezU - 15.12.2016, 13:47
Re: How to make this CMD For SWAT?? - by iLearner - 15.12.2016, 13:47
Re: How to make this CMD For SWAT?? - by Thanks - 15.12.2016, 13:54
Re: How to make this CMD For SWAT?? - by ISmokezU - 15.12.2016, 14:04
Re: How to make this CMD For SWAT?? - by Thanks - 15.12.2016, 14:08

Forum Jump:


Users browsing this thread: 2 Guest(s)