- 0
Problema comanda
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Andrey.bca
Problema intalnita (descriere): Este un sistem de event , nu da nici o eroare , dar cand intru pe server nu merge comenzile respective..
Ero(area / rile) / warning-(ul / urile): Nu sunt
Liniile de cod / sursa / script-ul(obligatoriu):
#include <a_samp>
stock
CMD:stopevent(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 9)
{
EventStarted = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " [Event]Admin %s A Oprit Eventul .", sendername);
OOCNews(COLOR_RED,string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}
stock
CMD:startevent(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 9 && (!EventStarted))
{
EventStarted = 1;
EventLocked = 0;
GetPlayerPos(playerid,ex,ey,ez);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Event]Admin %s A Pornit Un event, pentru a face parte din event /joinevent .", sendername);
OOCNews(COLOR_LIGHTRED,string);
}
else if (PlayerInfo[playerid][pAdmin] >= 9 && (EventStarted))
{
EventStarted = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}
stock
CMD:joinevent(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(EventStarted == 0)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "[Event] Eventul nu a fost pornit .");
return 1;
}
else if(EventLocked == 1)
{
SendClientMessage(playerid, COLOR_RED, "[Event] Eventul A Fost Blocat");
return 1;
}
SetPlayerPos(playerid,ex,ey,ez);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
return 1;
}
stock
CMD:lockevent(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 9)
{
EventLocked = 1;
GetPlayerPos(playerid,ex,ey,ez);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Event] Admin %s A Blocat Eventul .", sendername);
OOCNews(COLOR_LIGHTBLUE,string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}
Imagini / Video (optional): http://imgur.com/a/MMbpq
Ati incercat sa rezolvati singur?: Da
3 answers to this question
Recommended Posts