Need small fixes with my event commands
#1

Fixed!
Reply
#2

Fixed!
Reply
#3

pawn Код:
if(!EventOpen == 2) return SCM(playerid, -1 ,"Event has to be started in order to use this command");
ident ur code, too hard for others to read/understand it.
http://courses.cs.washington.edu/cou...au/indent.html << if u're too lazy

PHP код:
if(strcmp(cmd"/eventteleport"true) == 0)
{
    if(
AccInfo[playerid][LoggedIn] == && AccInfo[playerid][Level] >=2)
    {
        new 
PlayerName[MAX_PLAYER_NAME], string[256];
        new 
Float:xFloat:yFloat:z;
        
GetPlayerName(playeridPlayerNameMAX_PLAYER_NAME);
        
GetPlayerPos(playeridxyz);
        
SendClientMessage(playeridBlueMsg"[ NOTIFICATION: You have teleported all event participants to your position. ]");
        
SendCommandToAdmins(playerid,"EventTeleport");
        
format(string,sizeof(string),"[ ADMIN: %s (Id: %d) has teleported every event participants to his/her position. ]",PlayerName,playerid);
        
SendClientMessageToAll(COLOR_PINK,string);
        for(new 
0MAX_PLAYERSi++)
        {
            if(
GetPlayerVirtualWorld(i)== 9999//why are u checking this doe?
            
{
                
SetPlayerPos(ixyz);
                
SetPlayerInterior(iGetPlayerInterior(playerid));
            }
        }
        return 
1;
    }
    else 
SendClientMessage(playerid,red"[ ERROR: You have entered an invalid command, please type /cmds to know the server's commands. ]");
    }

give this one a try? maybe they had a different interior
Reply
#4

Fixed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)