Forumo paieška
'MrLTU' .
Pagal jūsų užklausą pavyko rasti 2 rezultatus
-
MTA Objektu ID http://gamerxserver....php?topic=336.0 Jeij negaila +R3p
-
Ištrinkite seną /ant komandą ir vietoje senos komandos įdėkite šią, sukomplinkite modą ir štai, komanda įdėta. Kaip tai atrodo: if(!strcmp(cmdtext, "/ant", true,4)) { if(playerDB[playerid][specialybe]!=1){SendClientMessage(playerid,RED,"* Ši komanda tik policininkams"); return 1;} if (Spectating[playerid][0]!=-1){ SendClientMessage(playerid, RED, "* Nėra tokios komandos!!!"); return 1;} if(cmdtext[4]==0){SendClientMessage(playerid,BLUE,"* Uždėti/nuimti žaidėjui antrankius: /ant [vardo_dalis]"); return 1;} new vardas[MAX_PLAYER_NAME]; strmid(vardas,cmdtext[5],0,MAX_PLAYER_NAME); new id = GetPlayeridMid(vardas); if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, RED, "* Tokio žaidėjo nėra"); return 1;} // if (id == playerid){ SendClientMessage(playerid, RED, "* Savęs surakinti negali!"); return 1;} new Float:Coo[3]; GetPlayerPos(id,Coo[0],Coo[1],Coo[2]); if(!PlayerToPoint(3, playerid, Coo[0],Coo[1],Coo[2])){SendClientMessage(playerid, RED, "* Žaidėjas per toli, prieikite arčiau."); return 1;} new msg[128],police[MAX_PLAYER_NAME]; GetPlayerName(playerid,police,sizeof(police)); GetPlayerName(id,vardas,sizeof(vardas)); if(playerDB[id][cuffed]) { playerDB[id][cuffed]=false; TogglePlayerControllable(id,true); RemovePlayerAttachedObject(id,0); //Panaikiną antrankius SetPlayerSpecialAction(id,SPECIAL_ACTION_NONE);// Nustato ,kad nebūtų animacijos format(msg,sizeof(msg),"Paleidote %s.",vardas); SendClientMessage(playerid,GREEN,msg); format(msg,sizeof(msg),"Jus paleido %s.",police); SendClientMessage(id,RED,msg); }else{ playerDB[id][cuffed]=true; TogglePlayerControllable(id,false); SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED );// žaidėjo animaciją[Rankos už nugaros] SetPlayerAttachedObject(id,0,19418,5,0.016000,0.032000,0.025000,17.500005,-10.099991,-48.099990,1.0,1.0,1.0 );//Žaidėjui uždedami antrankiai format(msg,sizeof(msg),"Surakinote %s.",vardas); SendClientMessage(playerid,GREEN,msg); format(msg,sizeof(msg),"Jus surakino %s.",police); SendClientMessage(id,GREEN,msg); } return 1; } Jeij negaila +R3P