- 0
Войдите для возможности подписаться
Подписчики
0
Stay within the world boundries
Вопрос от
Lorenzo
,
Вопросы
Лучший ответ
@Lorenzo добавь
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
Эта тема закрыта для публикации ответов.
Войдите для возможности подписаться
Подписчики
0
-
Последние посетители 0 пользователей онлайн
Ни одного зарегистрированного пользователя не просматривает данную страницу
-
Похожий контент
-
Опубликовано (изменено) · Жалоба
Проблема, весь мозг сломал, уже задолбался. После ввода пароля такая фигня! Если что вот паблик OnPlayerSpawn.
public OnPlayerSpawn(playerid)
{
SetPlayerColor(playerid,0xFFFFFF00);
new player_version[64 + 1];
GetPlayerVersion(playerid, player_version, sizeof(player_version));
if(strcmp(player_version, "LoL4") == 0)
{
SPD( playerid, d_null, DIALOG_STYLE_MSGBOX, " ",
"{FFFFFF}Ïðèâåòñòâóåì Âàñ íà ñåðâåðå " #C_GRAY "Exciting Roleplay.{ffffff}\n\
Âû áûëè îòêëþ÷åíû îò ñåðâåðà ïî ïîäîçðåíèþ â èñïîëüçîâàíèè ÷èòîâ.\n\
", "", "Çàêðûòü" );
Kick(playerid);
return true;
}
if(GetPVarInt(playerid,"skinchange")==1)
{
if(pInfo[playerid][pChart][0]==1) SetPlayerSkin(playerid,10);
if(pInfo[playerid][pChart][0]==2) SetPlayerSkin(playerid,2);
TogglePlayerSpectating(playerid,0);
TogglePlayerControllable(playerid,0);
SetPlayerCameraPos(playerid, -742.8233, 2506.9116, 40.3988);
SetPlayerCameraLookAt(playerid, -743.7087, 2506.4431, 40.2837);
SetPlayerPos(playerid,-748.63312, 2504.27075, 39.72100);
SetPlayerVirtualWorld(playerid,playerid+1);
SetPlayerFacingAngle(playerid,-87.00);
SCM(playerid,COLOR_DARK_GRAY,"Èñïîëüçóéòå ñòðåëêè, ÷òîáû âûáðàòü âíåøíèé âèä ñâîåãî ïåðñîíàæà");
SCM(playerid,COLOR_DARK_GRAY,"Âíåøíèé âèä äîëæåí ñîîòâåòñòâîâàòü âàøåé ðîëè.  ïðîòèâíîì ñëó÷àå Âàñ ìîãóò íàêàçàòü");
for(new z; z != 6; z++) TextDrawShowForPlayer(playerid,tskinc[z]);
SelectTextDraw(playerid,0xFF0000FF);
return 1;
}
new c,m;
gettime(c,m,_);
SetPlayerTime(playerid,c,m);
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"WEAPONS");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"PED");
SetPlayerArmour(playerid,0.0);
//pInfo[playerid][pAdmin]=5; // ÓÁÅÐÈ !!!!!!!!! ////////////// ÍÅ ÇÀÁÛÂÀÉ !!///////////////////////////////
TogglePlayerSpectating(playerid,0);
if(GetPVarInt(playerid,"duty")!=1) SetPlayerSkin(playerid,pInfo[playerid][pChart][1]);
if(pInfo[playerid][pFrakskin] != 0) // âîññòàíîâëåíèå äåæóðñòâà
{
if(pInfo[playerid][pFrak][0] != 0)
{
SetPlayerSkin(playerid,pInfo[playerid][pFrakskin]);
SetPVarInt(playerid,"duty",1);
mysql_format:str_small("UPDATE `" #DB_ACCOUNTS "` SET `Fskin` = '0' WHERE `ID` = '%d'",pInfo[playerid][pID]);
mysql_function_query(mysql_connect_ID, str_small, false, "", "");
str_small[0] = EOS;
pInfo[playerid][pFrakskin] = 0;
SCM(playerid,-1,"" #C_ORANGE "Âàøå äåæóðñòâî áûëî âîññòàíîâëåíî ïîñëå ïîñëåäíåãî âûõîäà ñ ñåðâåðà");
}
else
{
mysql_format:str_small("UPDATE `" #DB_ACCOUNTS "` SET `Fskin` = '0' WHERE `ID` = '%d'",pInfo[playerid][pID]);
mysql_function_query(mysql_connect_ID, str_small, false, "", "");
str_small[0] = EOS;
pInfo[playerid][pFrakskin] = 0;
}
}
//probar[playerid][0] = CreateProgressBar(549.00, 27.00, 57.50, 3.50, -1048321, 100.0); probar[playerid][1] = CreateProgressBar(548.00, 41.00, 57.50, 3.50, 10682282, 100.0);
//for(new n; n < 2; n++) ShowProgressBarForPlayer(playerid, probar[playerid][n]), TextDrawShowForPlayer(playerid,protext[n]);
//potreb[0]=100.0; potreb[1]=100.0;
////////////////// ÐÀÍÅÍÈß/ÑÌÅÐÒÜ //////////////////////////////////////
if(GetPVarInt(playerid,"death")==1 && GetPVarInt(playerid,"spawn")==1)
{
new kolvo;
for(new i; i !=10; i++) { if(dInfo[playerid][dGun] != 0) { kolvo++; } }
format:str_small("(( ÝÒÎÒ ÈÃÐÎÊ ÁÛË ÐÀÍÅÍ %d ÐÀÇ(À). ÄËß ÏÎËÓ×ÅÍÈß ÏÎÄÐÎÁÍÎÉ ÈÍÔÎÐÌÀÖÈÈ ÂÂÅÄÈÒÅ: /damages %d ))",kolvo,playerid);
dtext[playerid] = CreateDynamic3DTextLabel(str_small, 0xCF3F3FFF, 0.0, 0.0, 2.0, 5.0, playerid, INVALID_VEHICLE_ID,1,-1,-1,-1,5.0);
kolvo=0;
SetPlayerPos(playerid, pInfo[playerid][pCor][0], pInfo[playerid][pCor][1], pInfo[playerid][pCor][2]);
new anim = random(7);
if(anim==0) ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 0, 0, 0, 1, 0);
if(anim==1) ApplyAnimationIndex(playerid, 385, 4.1, 0, 0, 0, 1, 0);
if(anim==2) ApplyAnimationIndex(playerid, 387, 4.1, 0, 0, 0, 1, 0);
if(anim==3) ApplyAnimationIndex(playerid, 388, 4.1, 0, 0, 0, 1, 0);
if(anim==4) ApplyAnimationIndex(playerid, 389, 4.1, 0, 0, 0, 1, 0);
if(anim==5) ApplyAnimationIndex(playerid, 390, 4.1, 0, 0, 0, 1, 0);
if(anim==6) ApplyAnimationIndex(playerid, 392, 4.1, 0, 0, 0, 1, 0);
SCM(playerid,0xCF3F3FAA,"Âàì íåîáõîäèìî äîæäàòüñÿ ñîòðóäíèêîâ ñêîðîé ïîìîùè, êîòîðûå ñìîãóò îêàçàòü âàì âñþ íåîáõîäèìóþ ïîìîùü");
SCM(playerid,0xCF3F3FAA,"Åñëè âû ñ÷èòàåòå, ÷òî âàñ óáèëè ñ íàðóøåíèåì ïðàâèë ñåðâåðà, ñîîáùèòå îá ýòîì àäìèíèñòðàöèè ñåðâåðà è âûëîæèòå æàëîáó íà ôîðóì");
return 1;
}
if(GetPVarInt(playerid,"death")==2 && GetPVarInt(playerid,"spawn")==1)
{
format:str_small("(( ÄÀÍÍÛÉ ÈÃÐÎÊ ÌÅÐÒÂ, ÄËß ÏÎÄÐÎÁÍÎÉ ÈÍÔÎÐÌÀÖÈÈ /damages %d ))",playerid);
dtext[playerid] = CreateDynamic3DTextLabel(str_small, 0xCF3F3FFF, 0.0, 0.0, 2.0, 5.0, playerid, INVALID_VEHICLE_ID,1,-1,-1,-1,5.0);
SetPlayerPos(playerid, pInfo[playerid][pCor][0], pInfo[playerid][pCor][1], pInfo[playerid][pCor][2]), ApplyAnimation(playerid, "PED", "KO_shot_front", 4.1, 0, 0, 0, 1, 0);
SCM(playerid,0xCF3F3FAA,"Âû áûëè óáèòû è âàì çàñ÷èòûâàåòñÿ \"ÏÊ\"");
SCM(playerid,0xCF3F3FAA,"Äëÿ ïðèíÿòèÿ ñìåðòè ââåäèòå: /accdeath");
return 1;
}
////////////////////////////////////////////////////////////////////////////
if( GetPVarInt(playerid,"death") == 0) DestroyDynamic3DPlayer( dtext[playerid], playerid );
if(pInfo[playerid][pArrest]!=0 && GetPVarInt(playerid,"gLogged")==1) // àðåñò
{
SetPlayerPosF(playerid, 472.4010,364.1892,13.1928,341.9814);
SCM( playerid, -1, "Ñðîê çàäåðæàíèÿ èñòåê. Âàñ âûïóñòèëè èç ÈÂÑ");
SetPVarInt(playerid,"spawn",1);
}
if(pInfo[playerid][pPos][0]==0.0) return SetPlayerPosF(playerid, 804.6255,916.7376,12.9734,157.7555), SetPVarInt(playerid,"spawn",1);
if(GetPVarInt(playerid,"spawns")==3) return SetPlayerPosF(playerid, 804.6255,916.7376,12.9734,157.7555), SetPVarInt(playerid,"spawn",1);
if(GetPVarInt(playerid,"spawns")==2) return SetPlayerPosF(playerid,pInfo[playerid][pPos][0],pInfo[playerid][pPos][1],pInfo[playerid][pPos][2],pInfo[playerid][pPos][3]), SetPlayerVirtualWorld(playerid,pInfo[playerid][pVirt]), pInfo[playerid][pVirt]=0, SetPVarInt(playerid,"spawn",1);
if(GetPVarInt(playerid,"spawns")==4) return SetPlayerPosF(playerid,nInfo[pInfo[playerid][pHspawn]-1][nSpawn][0],nInfo[pInfo[playerid][pHspawn]-1][nSpawn][1],nInfo[pInfo[playerid][pHspawn]-1][nSpawn][2],0), SetPlayerVirtualWorld(playerid,nInfo[pInfo[playerid][pHspawn]-1][nInt]), SetPVarInt(playerid,"spawn",1);
if(GetPVarInt(playerid,"spawns")==5)
{
if(pInfo[playerid][pFrak][0]==1) return SetPlayerPosF(playerid, 388.0764,-354.1723,1096.1400,178.0584), SetPVarInt(playerid,"spawn",1); //ÓÌÂÄ
if(pInfo[playerid][pFrak][0]==2) return SetPlayerPosF(playerid, -783.0989,1935.1475,46.0066,0.3108), SetPVarInt(playerid,"spawn",1); //ÎÌÎÍ
if(pInfo[playerid][pFrak][0]==3) return SetPlayerPosF(playerid, 1320.4918,-244.2070,1431.6700,181.5184), SetPVarInt(playerid,"spawn",1); //ÓÃÈÁÄÄ
if(pInfo[playerid][pFrak][0]==4) return SetPlayerPosF(playerid, -2474.5835,1657.5858,52.4678,277.6623), SetPVarInt(playerid,"spawn",1); //ÏÐÀÂÈÒÅËÜÑÒÂÎ
if(pInfo[playerid][pFrak][0]==5) return SetPlayerPosF(playerid, 161.6254,-551.3674,1003.0159,357.2979), SetPVarInt(playerid,"spawn",1); //Ì×Ñ
if(pInfo[playerid][pFrak][0]==6) return SetPlayerPosF(playerid, 365.6811,333.6839,1003.9100,358.7623), SetPVarInt(playerid,"spawn",1); //ÔÊÖ
if(pInfo[playerid][pFrak][0]==7) return SetPlayerPosF(playerid, 2363.6965,-2629.5479,1003.0000,1.2698), SetPVarInt(playerid,"spawn",1), ac_GivePlayerWeapon(playerid,43,999); //ÒÐÊ
if(pInfo[playerid][pOrg][0] > 0)
{
for(new i; i != LoadAllNed; i++)
{
if(oInfo[ pInfo[playerid][pOrg] ][oNed] == 0)
{
SCM(playerid,-1,"Ó Âàøåé îðãàíèçàöèè íåò ñïàâíà!");
break;
}
if(oInfo[ pInfo[playerid][pOrg] ][oNed] == i)
{
if(nInfo[nSpawn][0] != 0.0)
{
SetPlayerPosF(playerid, nInfo[nSpawn][0], nInfo[nSpawn][1], nInfo[nSpawn][2],0);
SetPlayerVirtualWorld(playerid,nInfo[nInt]);
SetPVarInt(playerid,"spawn",1);
return 1;
}
}
}
}
}
SetPlayerPosF(playerid, 804.6255,916.7376,12.9734,157.7555), SetPVarInt(playerid,"spawn",1), SetPlayerVirtualWorld(playerid,0);
return 1;
}
Отредактировано пользователем Lorenzo
Поделиться сообщением
Ссылка на сообщение