help correct team
#1

help correct team
Код:
if(strcmp(cmd, "/sp", true) == 0)
{
new tmp[256];
tmp = adminspec_strtok(cmdtext, idx);
if(PlayerInfo[playerid][AdmLvl]>=1)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Подсказка: /sp [playerid]");
return 1;
}
specplayerid = strval(tmp);
if(!IsPlayerConnected(specplayerid)) {
SendClientMessage(playerid, COLOR_RED, "Ошибка.Игрок с таким ID отсутствует");
return 1;
}
if(!IsPlayerInAnyVehicle(playerid))
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, specplayerid);
SetPlayerInterior(playerid,GetPlayerInterior(specplayerid));
gSpectateID[playerid] = specplayerid;
gSpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;
}
if(IsPlayerInAnyVehicle(playerid))
{
specvehicleid=GetPlayerVehicleID(strval(tmp));
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, specvehicleid);
}
}
return 1;
}
if(strcmp(cmd, "/weather", true) == 0)
{
if(PlayerInfo[playerid][AdmLvl]>=2)
{
new tmp[256];
new weather;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "Подсказка: /weather [Номер погоды]");
}
weather=strval(tmp);
SetWeather(weather);
return 1;
}
}
Reply
#2

??help
Reply
#3

helpp
Reply
#4

help !!!!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)