25.11.2011, 21:45
Replace
With
========
pawn Код:
if(GetPlayerSkin(playerid) == 280); // It shoudn't be with ";"
pawn Код:
if(GetPlayerSkin(playerid) == 280)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if(GetPlayerSkin(playerid) == 280)
{
if (strcmp(cmd,"/createstrip",true) == 0) {
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;
}
}
return 0;
}