Jump to content

ionutuidumanu

Membru
  • Posts

    70
  • Joined

  • Last visited

    Never

Everything posted by ionutuidumanu

  1. Nu se mai poate face ca imi trebiua ca e cam singuru 3dspeedometer pe carel am..
  2. Ms mult SPEEDY am rezolvat :grin:
  3. Am colorat un carmenuhttp://imageshack.us/photo/my-images/41/samp035pl.png/,dar cand de ex intru in meniul "bikes" si dau back nu mai apare colorathttp://imageshack.us/photo/my-images/143/samp036va.png/
  4. tot degaba ca nu dispare firar mama lui la turci.... :sad:
  5. Da lam pus dispare cand ies din masina dar dupa ce ma urc iar in masina nu mai apare,stuntman eu nu aveam deloc public OnPlayerExitVehicle(playerid, vehicleid) sau public OnPlayerExitVehicle( vehicleid) lam adaugat eu Uite doar asta are fs inafar de masini: new PlayerText3D:speedo3Dtext; new Speedoff; public OnFilterScriptInit() { Speedoff = SetTimer("Speed", 500, 1); return 1; } forward Speed(); public Speed() { for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p)) { new vehicleid = GetPlayerVehicleID(p); if(vehicleid) { new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth; GetVehicleVelocity(vehicleid, X, Y, Z); PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100; GetVehicleHealth(vehicleid,vhealth); format(string,sizeof string ,"{F81414}Masina: %s\n{F3FF02}Rezistenta: %.2f\n{0049FF}Viteza: %ikm/h", VehicleName[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor)); DeletePlayer3DTextLabel(p, speedo3Dtext); speedo3Dtext = CreatePlayer3DTextLabel(p, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid); } else if(p) { DeletePlayer3DTextLabel(p, speedo3Dtext); } } } public OnFilterScriptExit() { KillTimer(Speedoff); for(new p = 0; p < GetMaxPlayers(); p++) DeletePlayer3DTextLabel(p, speedo3Dtext); return 1; }
  6. Am pus dar dispare o secunda si apare iar.. new PlayerText3D:speedo3Dtext; new Speedoff; public OnFilterScriptInit() { Speedoff = SetTimer("Speed", 500, 1); return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { DeletePlayer3DTextLabel( playerid, speedo3Dtext ); return 1; } forward Speed(); public Speed() { for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p)) { new vehicleid = GetPlayerVehicleID(p); if(vehicleid) { new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth; GetVehicleVelocity(vehicleid, X, Y, Z); PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100; GetVehicleHealth(vehicleid,vhealth); format(string,sizeof string ,"{F81414}Masina: %s\n{F3FF02}Rezistenta: %.2f\n{0049FF}Viteza: %ikm/h", VehicleName[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor)); DeletePlayer3DTextLabel(p, speedo3Dtext ); speedo3Dtext = CreatePlayer3DTextLabel(p, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid); } else if(p) { DeletePlayer3DTextLabel(p, speedo3Dtext); } } } public OnFilterScriptExit() { KillTimer(Speedoff); for(new p = 0; p < GetMaxPlayers(); p++) DeletePlayer3DTextLabel(p, speedo3Dtext); return 1; }
  7. Eu la asta trb sa modific ca sa dispara.. public OnFilterScriptExit() { KillTimer(Speedoff); for(new p = 0; p < GetMaxPlayers(); p++) DeletePlayer3DTextLabel(p, speedo3Dtext); return 1; }
  8. Te rog fami tu ai asa ca mie imi da eroare asta C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server RCD\filterscripts\speedo.pwn(52) : error 017: undefined symbol "i" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. Ai ce am eu in spedometer mai sus
  9. deci cum fac ca nu inteleg....
  10. C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server RCD\filterscripts\speedo.pwn(46) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
  11. Am un fs cu 3dspedometer vreau cand ies din masina sa dispara ca imi ramane acolo pe masina pana iau alta Poftim liniile public OnFilterScriptInit() { Speedoff = SetTimer("Speed", 500, 1); return 1; } forward Speed(); public Speed() { for(new p = 0; p < GetMaxPlayers(); p++) if(IsPlayerConnected(p) && !IsPlayerNPC(p)) { new vehicleid = GetPlayerVehicleID(p); if(vehicleid) { new string[128], Float:X, Float:Y, Float:Z, Float:PointToPoint, Float:vhealth; GetVehicleVelocity(vehicleid, X, Y, Z); PointToPoint = (floatsqroot(floatpower(X, 2) + floatpower(Y, 2) + floatpower(Z, 2)))*100; GetVehicleHealth(vehicleid,vhealth); format(string,sizeof string ,"{F81414}Masina: %s\n{F3FF02}Rezistenta: %.2f\n{0049FF}Viteza: %ikm/h", VehicleName[GetVehicleModel(vehicleid)-400], vhealth, floatround(PointToPoint, floatround_floor)); DeletePlayer3DTextLabel(p, speedo3Dtext); speedo3Dtext = CreatePlayer3DTextLabel(p, string, speedcolor, 0.0,-1.6,-0.35,20.0, INVALID_PLAYER_ID, vehicleid); } else if(p) { DeletePlayer3DTextLabel(p, speedo3Dtext); } } }
  12. Pune la inceput adica fileterscript neon eu asa aveam la un FS imi disparea dialogul pana lam pus primu la filterscript
  13. Folosesc Ladmin4v2 da sunt cam aceleasi culori nu cred ca mere daca iau din ladmin4v2
  14. http://imageshack.us/photo/my-images/809/samp033g.png/
  15. sa:mp 0.3c folosesc...
  16. Eroare numi da nu apar culori am incercat cu peste 10 coduri de culori
  17. Am inlocuit ma doar nu puneam asa....
  18. Cum fac sa cand vorbeste cineva pe chat sa apara colorat Uitati ce am la OnPlayerText: public OnPlayerText(playerid, text[]) { if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid)) { SendClientMessage(playerid, 0xFF0000FF, "*{6EF83C} You can only send a message once every three {FFFFFF}seconds."); return 0; } if(!IsPlayerAdmin(playerid)) { if(strlen(text) == strlen(szPlayerChatMsg[playerid]) && !strcmp(szPlayerChatMsg[playerid], text, false)) { SendClientMessage(playerid, 0xFF0000FF, "* {FFFFFF}Please do not repeat {F81414}yourself."); format(szPlayerChatMsg[playerid], 128, "%s", text); return 0; } } format(szPlayerChatMsg[playerid], 128, "%s", text); iPlayerChatTime[playerid] = GetTickCount(); new is1=0; new r=0; while(strlen(text[is1])) { if('0'<=text[is1]<='9') { new is2=is1+1; new p=0; while(p==0) { if('0'<=text[is2]<='9'&&strlen(text[is2])) is2++; else { strmid(strR[r],text,is1,is2,255); if(strval(strR[r])<255) r++; is1=is2; p=1; } } } is1++; } if(r>=4) { new strMy[255]; new STRname[255]; GetPlayerName(playerid,STRname,255); format(strMy, sizeof(strMy), " Nu se pote reclama %s(%d): %s",STRname,playerid,text); for(new j1=0; j1 < MAX_PLAYERS;j1++) if(IsPlayerAdmin(j1)) SendClientMessage(j1, 0xFF0000FF, strMy); for(new z=0;z<r;z++) { new pr2; while((pr2=strfind(text,strR[z],true))!=-1) for(new i=pr2,j=pr2+strlen(strR[z]);i<j;i++) text='*'; } } return 1; }
  19. Incerc sa pun o comanda pt admini dar imi iese comanda doar pt rcon ce trebuie sa inlocuiesc la asta: if(IsPlayerAdmin(playerid))
  20. am comanda asta pt casa de admin dar imi da erroarea asta: C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 017: undefined symbol "PlayerInfo" C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : warning 215: expression has no effect C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 001: expected token: ";", but found "]" C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 029: invalid expression, assumed zero C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Uitati si comanda COMMAND:adminhouse(playerid,params[]) { if(IsPlayerConnected(playerid)) { if(IsPlayerAdmin(playerid)) { SetPlayerPos(playerid, 2612.9089,1588.0884,10.8203); GameTextForPlayer(playerid, "~w~Bun Venit Acasa",5000,1); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid, 0); PlayerInfo[playerid][pInt] = 0; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command."); return 1; } } return 1; }
  21. Am un sistem de drifts fac drifturi dar nu imi da bani :sad:
  22. Mersi mult Roach am rezolvat :laugh:
  23. ionutuidumanu

    /up

    Deci am o promblema la comanda /up,cand dau de ex /up 10 imi apare asa "Use correct: /up <Height>" Uitati si comanda: COMMAND:up(playerid,idx, params[]) { new Float:x, Float:y, Float:z; new tmp[256]; tmp = strtok(params,idx); new height = strval(tmp); if(height != 0) { if(IsPlayerInAnyVehicle(playerid)) { GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z); SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z + height); } else { GetPlayerPos(playerid, x, y, z); GivePlayerWeapon(playerid, 46, 1); SetPlayerPos(playerid, x, y, z + height); } } else { SendClientMessage(playerid, COLOR_RED, "Use correct: /up <Height>"); } return 1; }
×
×
  • Create New...

Important Information

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.