native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicCylinder(Float:x, Float:y, Float:minz, Float:maxz, Float:size, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicCuboid(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);native DestroyDynamicArea(areaid);native IsValidDynamicArea(areaid);native GetDynamicPolygonPoints(areaid, Float:points[], maxpoints = sizeof points);native GetDynamicPolygonNumberPoints(areaid);native TogglePlayerDynamicArea(playerid, areaid, toggle);native TogglePlayerAllDynamicAreas(playerid, toggle);native IsPlayerInDynamicArea(playerid, areaid, recheck = 0);native IsPlayerInAnyDynamicArea(playerid, recheck = 0);native IsAnyPlayerInDynamicArea(areaid, recheck = 0);native IsAnyPlayerInAnyDynamicArea(recheck = 0);native GetPlayerDynamicAreas(playerid, areas[], maxareas = sizeof areas);native GetPlayerNumberDynamicAreas(playerid);native IsPointInDynamicArea(areaid, Float:x, Float:y, Float:z);native IsPointInAnyDynamicArea(Float:x, Float:y, Float:z);native AttachDynamicAreaToObject(areaid, objectid, type = STREAMER_OBJECT_TYPE_DYNAMIC, playerid = INVALID_PLAYER_ID);native AttachDynamicAreaToPlayer(areaid, playerid);native AttachDynamicAreaToVehicle(areaid, vehicleid);
forward OnPlayerEnterDynamicArea(playerid, areaid);forward OnPlayerLeaveDynamicArea(playerid, areaid);
public OnPlayerEnterDynamicArea(playerid, areaid){ if(areaid == yourareaid) ShowPlayerDialog(); return 1;}
public OnPlayerDeath(playerid, killerid, reason){new uzenet8[128];new fegyvernev[30];SetPlayerScore(playerid, GetPlayerScore(playerid)-1);GetPlayerName(playerid, nev2, sizeof(nev2));GetPlayerName(killerid, nev, sizeof(nev)); GetWeaponName(killerid,fegyvernev,sizeof(fegyvernev));format(uzenet8, sizeof(uzenet8), \" %s megölte %s-t ezzel: %s \",nev, nev2,fegyvernev);SendClientMessageToAll(-1,uzenet8);printf(uzenet8);SendClientMessage(killerid,HIBA,\"Megöltél egy embert!\"); return 1;}
public OnPlayerDeath(playerid, killerid, reason){new uzenet8[128], fegyvernev[30], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];SetPlayerScore(playerid, GetPlayerScore(playerid)-1);GetPlayerName(playerid, name2, sizeof(name2));GetPlayerName(killerid, name, sizeof(name));GetWeaponName(killerid,fegyvernev,sizeof(fegyvernev));format(uzenet8, sizeof(uzenet8), \" %s megölte %s-t ezzel: %s \",name, name2,fegyvernev);SendClientMessageToAll(-1,uzenet8);printf(uzenet8);SendClientMessage(killerid,-1,\"Megöltél egy embert!\");return 1;}
if(dialogid == DIALOG_KERI_2){if(response){switch(listitem){ case 0: { KeriSlotResi(); ShowKeri(playerid); } case 1: { if(Jatekosinfo[playerid][Jarmu1] == -1 && Jatekosinfo[playerid][Jarmu2] == -1) return SMG(playerid,-1,\"Nincs egy járműved sem.\"); new v1[32],v2[32],id; if(Jatekosinfo[playerid][Jarmu1] != -1) { id = Jarmuinfo[Jatekosinfo[playerid][Jarmu1]][id]; format(v1, sizeof(v1), \"%s (( %s ))\", GetRealVehicleModelName(GetVehicleModel(id)-400),GetVehicleModelName(GetVehicleModel(id)-400)); ShowPlayerDialog(playerid,DIALOG_KERI_ELSODLEGES,DIALOG_STYLE_LIST,\"Autókereskedés\",v1,\"Elad\",\"Kilép\"); } if(Jatekosinfo[playerid][Jarmu2] != -1) { id = Jarmuinfo[Jatekosinfo[playerid][Jarmu2]][id]; format(v2, sizeof(v2), \"%s (( %s ))\", GetRealVehicleModelName(GetVehicleModel(id)-400),GetVehicleModelName(GetVehicleModel(id)-400)); ShowPlayerDialog(playerid,DIALOG_KERI_MASODLAGOS,DIALOG_STYLE_LIST,\"Autókereskedés\",v2,\"Elad\",\"Kilép\"); } format(string,sizeof string,\"%s\\n%s\",v1,v2); ShowPlayerDialog(playerid,DIALOG_KERI_3,DIALOG_STYLE_LIST,\"Autókereskedés\",string,\"Elad\",\"Kilép\"); }}}}else if(dialogid == DIALOG_KERI_ELSODLEGES || dialogid == DIALOG_KERI_MASODLAGOS){new id;if(dialogid == DIALOG_KERI_ELSODLEGES){id = Jarmuinfo[Jatekosinfo[playerid][Jarmu1]][id];EladKeribe(playerid,id);Jatekosinfo[playerid][Jarmu1] = -1;}else{id = Jarmuinfo[Jatekosinfo[playerid][Jarmu2]][id];EladKeribe(playerid,id);Jatekosinfo[playerid][Jarmu2] = -1;}}else if(dialogid == DIALOG_KERI_3){if(response){new id;switch(listitem){ case 0: { id = Jarmuinfo[Jatekosinfo[playerid][Jarmu1]][id]; EladKeribe(playerid,id); Jatekosinfo[playerid][Jarmu1] = -1; } case 1: { id = Jarmuinfo[Jatekosinfo[playerid][Jarmu2]][id]; EladKeribe(playerid,id); Jatekosinfo[playerid][Jarmu2] = -1; }}}}
stock SetVehicleSpeed(vehicleid, Float:speed){ new Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2, Float:a; GetVehicleVelocity(vehicleid, x1, y1, z1); GetVehiclePos(vehicleid, x2, y2, z2); GetVehicleZAngle(vehicleid, a); a = 360 - a; x1 = (floatsin(a, degrees) * (speed/100) + floatcos(a, degrees) * 0 + x2) - x2; y1 = (floatcos(a, degrees) * (speed/100) + floatsin(a, degrees) * 0 + y2) - y2; SetVehicleVelocity(vehicleid, x1, y1, z1);}
Sziasztok!Valakinek van valamilyen tanácsa hogy SAMP-ban a szövegek színezését hogyan érdemes használni?Mert nekem van 1 kedvenc szinem és minden szövegnél azt a színt használom és így a szerver nagyon \"egyszínű\".Valakinek van valamilyen rendszere hogy hogyan színezi a szövegeket?