Preventing some commands in a different world
#8

I tried but I'm obviously putting it in wrong:/ Sorry I should have showed you exactly how I had put it. I know by just looking at it it's wrong, but I can't figure out where to fit it in. Here's how mine looks.

pawn Код:
if(!strcmp(cmdtext, "/s",true) || !strcmp(cmdtext,"/sp",true)){ if (IsPlayerInAnyVehicle(playerid))
        {
    new PlayerVW = GetPlayerVirtualWorld(playerid);
        if(PlayerVW == 4) {
        SendClientMessage(playerid, 0xFB0000FF,"SERVER: You cannot use this command here.");
        }
        else {
        GetVehiclePos(GetPlayerVehicleID(playerid), SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]);
    GetVehicleZAngle(GetPlayerVehicleID(playerid), SavePos[playerid][sA]);
        }else {
    GetPlayerPos(playerid, SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]);
    GetPlayerFacingAngle(playerid, SavePos[playerid][sA]);
        }SavePos[playerid][SavedPos] = 1;
    return SendClientMessage(playerid, 0xFFFFFFAA, "Position saved! Use /l To Return");
        }

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)