Help with CreateObject
#2

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;
}
Reply


Messages In This Thread
Help with CreateObject - by Jimmeh! - 17.07.2011, 23:14
Re: Help with CreateObject - by =WoR=Varth - 18.07.2011, 01:34

Forum Jump:


Users browsing this thread: 2 Guest(s)