25.11.2011, 21:09
Do you want only if someone has skin 280 to use the commands?
However, you closed the bracket instead of open it and close it at the end.
I don't know if this is you are looking for.
However, you closed the bracket instead of open it and close it at the end.
I don't know if this is you are looking for.
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;
}