29.07.2011, 16:22
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; } |