Command Warnings
#3

pawn Код:
CMD:setvw(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, COLOR_RED, "You are not authorized to use this command");
    new targetid, vw, string[128];
    if(sscanf(params, "ud", targetid, vw)) return SendClientMessage(playerid, COLOR_FADE1, "USAGE:/setvw [playerid] [virtual world]");
    if(IsPlayerConnected(targetid))
    {
        PlayerInfo[targetid][pVW] =  vw;
        SetPlayerVirtualWorld(targetid,  vw);
        new pName[24];
        GetPlayerName(targetid, pName, 24);
        format(string, sizeof(string), "You have set %s's virtual world to %d.", pName, vw);//Line 702
        SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    return 1;
}
Reply


Messages In This Thread
Command Warnings - by San1 - 12.06.2013, 22:49
Re: Command Warnings - by ReVo_ - 12.06.2013, 22:52
Respuesta: Command Warnings - by JustBored - 12.06.2013, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)