help need spike only for swat??
#3

can u add that to here
Quote:

#include <a_samp>
#include <SpikeStrip>

#define playerskin = GetPlayerSkin(playerid);

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);

if (strcmp(cmd,"/spike",true) == 0)
{
new Floatlocx,Floatlocy,Floatlocz,Floatloca;
GetPlayerPos(playerid, plocx, plocy, plocz);
GetPlayerFacingAngle(playerid,ploca);
CreateStrip(plocx,plocy,plocz,ploca);
return 1;
}
else if (strcmp(cmd,"/rspike",true) == 0)
{
DeleteClosestStrip(playerid);
return 1;
}
else if (strcmp(cmd,"/raspike",true) == 0)
{
DeleteAllStrip();
return 1;
}

return 0;
}

Reply


Messages In This Thread
help need spike only for swat?? - by UserName31 - 29.07.2011, 14:53
Re: help need spike only for swat?? - by Guest3598475934857938411 - 29.07.2011, 15:25
Re: help need spike only for swat?? - by UserName31 - 29.07.2011, 16:22
Re: help need spike only for swat?? - by Guest3598475934857938411 - 29.07.2011, 16:53
Re: help need spike only for swat?? - by UserName31 - 29.07.2011, 17:17
Re: help need spike only for swat?? - by iPLEOMAX - 29.07.2011, 17:36
Re: help need spike only for swat?? - by UserName31 - 29.07.2011, 17:55
Re: help need spike only for swat?? - by iPLEOMAX - 29.07.2011, 18:07
Re: help need spike only for swat?? - by UserName31 - 30.07.2011, 23:58
Re: help need spike only for swat?? - by Guest3598475934857938411 - 31.07.2011, 00:36
Re: help need spike only for swat?? - by UserName31 - 31.07.2011, 17:06

Forum Jump:


Users browsing this thread: 2 Guest(s)