15.12.2016, 13:06
hi everyone how to make this Commands Only FOR SWAT? Please Help me Guyz
This is the Commands so now how to make it For SWAT Only ? [ SWAT Skin : 285 ]
So can you help me?
Код:
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; }
So can you help me?