Jump to content

Yandel

Membru
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by Yandel

  1. Vezi ca n-ai inchis if-urile
  2. Yandel

    Ajutor!

    Ai astea ? #define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9) #define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1) #define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
  3. Yandel

    Comanda /ad

    if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 4, 844.7395,-1045.7008,25.4302)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet !"); return 1; } if(PlayerInfo[playerid][pLevel] < 5) { SendClientMessage(playerid, 0x4FA7FFFF, "*** You must be level 5 to use /ad"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/ad)vertise [advert text]"); return 1; } if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1)) { format(string, sizeof(string), " Please try again later %d seconds between Advertisements !", (addtimer/1000)); SendClientMessage(playerid, COLOR_GRAD2, string); return 1; } new payout = idx * 25; if(GetPlayerMoney(playerid) < payout) { format(string, sizeof(string), "* You used %d characters which cost $%d, you don't have enough.", offset, payout); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; } GivePlayerMoney(playerid, - payout); SBizzInfo[7][sbTill] += payout; ExtortionSBiz(7, payout); format(string, sizeof(string), "{6EF83C} â„¢|AD|:{FFFFFF} %s,{6EF83C} |Contact|:{0049FF} %s{6EF83C} |TEL|:{F81414} %d", result, sendername,PlayerInfo[playerid][pPnumber]); OOCNews(0xFFFFFFFF,string); format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters", payout, idx); GameTextForPlayer(playerid, string, 5000, 5); if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;} } } return 1; }
  4. Yandel

    Eror include

    1. Sterge panel, doors etc din linia 27, le mai ai undeva mai sus 2. La fel si pt OnPlayerUpdate de la 20301 3. Pentru strtok pune asta undeva in zona publicurilor strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; } Pt restul posteaza si liniile
  5. Yandel

    URGENT!!!

    Ideea e sa-i setezi si draw distance. Eu iti recomand pluginul lui Incognito, foarte simplu de folosit, ii poti seta si draw distance, interior, vw, etc. Daca il lasi fara sa-i setezi distanta nu va functiona cu nici un streamer CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.0);
  6. Yandel

    URGENT!!!

    Ce streamer folosesti ? Modifica-i draw distance, fa-o mai mare
  7. if(strcmp(cmd, "/setint", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setint [playerid/PartOfName] [interiorid]"); return 1; } new playa; new intid; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); intid = strval(tmp); if(intid > 20) { SendClientMessage(playerid, 0xFFFFFFFF, "Nu poti sa setezi un nterior mai mare decat 20!"); return 1; } if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); SetPlayerInterior(playa,intid); PlayerInfo[playerid][pInt] = intid; format(string, sizeof(string), " You have set the players interiorid %d.", intid); SendClientMessage(playerid, COLOR_GRAD1, string); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "AdmWarning: %s has used command /setint !", sendername); ABroadCast(COLOR_YELLOW,string,1); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai voie sa folosesti comanda aceasta !"); } } return 1; }
  8. Yandel

    /???/

    Daca pui -1 nu se respawneaza cand nu e folosita
  9. Yandel

    Admins

    Fa-l asa if(PlayerInfo[i][pAdmin] == 1)[/CODE] Tu l-ai pus >= 1 deci de aia l-a detectat asa. Fa la fel si pt restul
  10. Din cate stiu AddStaticVehicle se foloseste numai pt OnGameModeInit. Incearca cu CreateVehicle
  11. Yandel

    Ce reprezinta

    30 e distanta catre acel punct Pt teleport incearca asta if(strcmp(cmd, "/teleport", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 2) // Modifica in functie de cum ai GM'ul { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /teleport[playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { PlayerInfo[playerid][pVirtualWorld] = 0; SetPlayerInterior(giveplayerid, 0); SetPlayerVirtualWorld(giveplayerid, 0); SetPlayerPos(giveplayerid, x, y, z); SendClientMessage(giveplayerid, COLOR_GRAD1, " You have been teleported !"); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } return 1; }
  12. Esti sigur ca ai xStreamer.so ? Nu .dll
  13. Esti sigur ca ai tot ce trebuie in scriptfiles ?
×
×
  • 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.