12.09.2011, 16:41
I would really recommend you to use ZCMD and Scanff for this.
A quick example of the Command part:
Hope this helps.
A quick example of the Command part:
pawn Код:
#include <zcmd>
#include <sscanf>
CMD:unlock(playerid, params[])
{
new password[35];
if(scanf(params, "s", password)) return SendClientMessage(playerid, 0x00FF0000, "wrong password!");
else
{
if(!strcmp(password, "YOUR_PASSWORD") == 0)
{
Locked[playerid] = 0;
}
{
else
{
Locked[playerid] = 1;
}
}
}