25.10.2014, 18:20
Hello. I'm new at scripting so I need some help. I've tryed to make simple script but when I type command in-game it just shows Unknown Command. Here is the code:
Код:
CMD:setskin(playerid, params[]) { new TargetID, SkinID; if(sscanf(params, "ui", TargetID, SkinID)) return SendClientMessage (playerid, COLOR_GREEN, "Naudojimas: /skinas [TargetID] [SkinID]"); if (!IsPlayerConnected(TargetID)) return SendClientMessage(playerid, COLOR_GREEN, "Zaidejas siuo metu neprisijunges."); if (SkinID < 0 || SkinID > 299) return SendClientMessage(playerid, COLOR_GREEN, "Sis skinas yra negalimas"); SetPlayerSkin (TargetID, SkinID); SendClientMessage(TargetID, COLOR_GREEN, "Jusu skinas buvo pakeistas"); SendClientMessage(playerid, COLOR_GREEN, "Zaidejo %TargetID skinas buvo pakeistas"); return 1; }