18.07.2011, 01:34
Example:
pawn Код:
new a;
CMD:doom(playerid,params[])
{
if(sscanf(params,"S(on) ",params) return SendClientMessage(playerid,color,"Useage: blablabla");
else
{
if(!strcmp(params,"on"))
{
DestroyObject(a);
a = CreateObject(....)
return 1;
}
if(!strcmp(params,"off")) return DestroyObject(a);
return 1;
}