25.06.2009, 16:23
Right, so i can teleport to interiors.. a.k.a.. a stunt track arena, if you type /gethere "playerid" they will see the int.. but if they type /joinevent.. they won't.. and will just fall..
my /joinevent CMD:
my /joinevent CMD:
Код:
if(strcmp(cmd, "/startevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 && (!EventStarted))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
EventStarted = 1;
GetPlayerPos(playerid,ex,ey,ez);
format(string, sizeof(string), "NOTICE: Administrator %s Has started an Event (/joinevent)", sendername);
OOCNews(TEAM_ORANGE_COLOR,string);
}
else if (PlayerInfo[playerid][pAdmin] >= 1 && (EventStarted))
{
EventStarted = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREEN, " you are not authorized to use that command!");
}
}
return 1;
}
if(strcmp(cmd, "/joinevent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(EventStarted == 0)
{
SendClientMessage(playerid, TEAM_ORANGE_COLOR, "An Event has not Started yet!");
return 1;
}
SetPlayerPos(playerid, ex, ey, ez); // Warp the player
SendClientMessage(playerid, COLOR_LIGHTRED, "Follow instructions by the Administrator who started the event.");
}//not connected
return 1;
}
Код:
Anyone help me, please? ;)

