20.07.2012, 21:15
'eyhoo.
Some hours ago I downloaded ZCMD include and decided to try making something simple first. I tried doing a simple kick command but when I go In game it says Server: Unknown Command. Later on I tried just putting a command to print text "Test" even then it didn't worked.
Here's the code
And here's my includes
Some hours ago I downloaded ZCMD include and decided to try making something simple first. I tried doing a simple kick command but when I go In game it says Server: Unknown Command. Later on I tried just putting a command to print text "Test" even then it didn't worked.
Here's the code
Код:
CMD:kick(playerid,params[]) { new targetid; if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "USAGE: /kick [playerid]"); else if(targetid==INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Player is not connected."); if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not administrator"); Kick(targetid); return 1; }
Код:
#include <a_samp> #include <zcmd> #include <sscanf2>