09.01.2013, 18:26
Hello.
All you need is zcmd, sscanf, time and good ideas.
There are a lot of examples everywhere.
Here's a little sample i wrote on my own.
Easy, isn't it?
Greetz,
LetsOWN
All you need is zcmd, sscanf, time and good ideas.
There are a lot of examples everywhere.
Here's a little sample i wrote on my own.
pawn Код:
COMMAND:dosomething(playerid, params[])
{
new id;
if(!sscanf(params, "u", id))
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /dosomething [playerid]");
return 1;
}
if(id == INVALID_PLAYER_ID)
SendClientMessage(playerid, 0xFF0000FF, "There is no such player :]");
return 1;
}
// Do something for player with ID 'id'.. Basically.. You can do WHATEVER :D
return 1;
}
Greetz,
LetsOWN