Код:
{
new i = IsPlayerInEVehicle[playerid];
Seats[i] --;
}
new string[24];
new d,m,y,h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
strmid(PlayerInfo[playerid][pLastSeen], string, 0, strlen(string), 255);
{
textreason = "Crashed";
strmid(PlayerInfo[playerid][pWhyLeft], "Crashed", 0, strlen("Crashed"), 255);
format(string2, sizeof(string2),"[INFO]: %sВлезе/Излезе Излезна от Bulgarian Roleplay.[%s]",plname, textreason);
SendAdminMessage(COLOR_GREEN, string2);
}
else if(reason == 1)
{
textreason = "Leaving";
strmid(PlayerInfo[playerid][pWhyLeft], "Leaving", 0, strlen("Leaving"), 255);
format(string2, sizeof(string2),"[INFO]: %sВлезе/Излезе Излезна от Bulgarian Roleplay.[%s]",plname, textreason);
SendAdminMessage(COLOR_GREEN, string2);
}
else if(reason == 2)
{
strmid(PlayerInfo[playerid][pWhyLeft], "Kicked/Banned", 0, strlen("Kicked/Banned"), 255);
}
SaveGuns(playerid);
OnPlayerUpdateEx(playerid);
if(OfficerCourseStep[playerid] != 255)
{
THIS IS THE LINE