Admin's SetWorld command by using zcmd and sscanf
#2

Simple and easy..

https://sampforum.blast.hk/showthread.php?tid=361798


pawn Код:
#include <a_samp>
#include <sscanf>
#include <zcmd>

CMD:vw(playerid,params[])
{
    new virtualworld;
    if(sscanf(params,"i",virtualworld)) return SendClientMessage(playerid,-1,"USAGE: /vw [id]");
    else
   {
       new str[256];
       SetPlayerVirtualWorld(playerid,virtualworld);
       format(str,sizeof(str),"You are now in virtual world %d",virtualworld);
       SendClientMessage(playerid,-1,str);
   }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)