Pinki950
-
Posts
31 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by Pinki950
-
-
Nume: Pinki95
Nume tutorial: comanda /tutorial
Descriere: As dori sa fac o comanda [/tutorial] care odata utilizata comanda sa apara x6 SendClientMessage dupa un anumit timp sa apara urmatoarele 6x SendClientMessage
-
Ideea este ca acest pickup este creat undeva in afara Hartii San Andreas locatia lui este "5410.7310, -884.5814, 16.5953" daca modific coordonatele mai aprope de San Andreas Merge
-
Nick: Pinki95
Problema: Salutare, am pe serverul meu un oras undeva deasupra apei si daca creez un pickup in orasul respectiv nu mi-l arata, dar daca il creez undeva in san andreas (LS, LV, SF) merge pickup-ul. Se poate face ceva in privinta asta?
Erori / warnings: -
Lini/script: -
Ai incercat sa rezolvi singur ?: Da, dar fara reusite!
-
Zim ce conectiune ai Romtelecom, RDS, UPC si ce router ai
-
Ai deschis Port Forwarding in setarile routerului?
-
Nume: Pinki950
Nume tutorial: DriverSchool
Descriere: Buna ziua, as dorii un tutorial despre cum sa fac setul de intrebari la care trebuie sa raspunzi cu A, B, C, sau D!
-
Nu merge ini da din nou lose mismatch
-
Nick: Pinki950
Problema: Imi da Warning 213 si nu stiu cum sa o rezolv la linia: if (doors == true)
Erori / warnings: Warning 213
Lini/script: [pawn]CMD:lock(playerid, params[])
{
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);//defining vehicleid is = to GetPlayerVehicleID.
SendAdminText(playerid, "/lock", params);
if(IsPlayerInAnyVehicle(playerid))//Thsi will check that is a player In a vehcile or not.
{
if (AVehicleData[GetPlayerVehicleID(playerid)][Owned] == true)
{
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);//will check that what is the state of the vehicle lock.
if (doors == true)
{
SetVehicleParamsEx(vehicleid, engine, lights, alarm, false, bonnet, boot, objective);
GameTextForPlayer(playerid,"~r~Masina descuiata!",3000,4);
}
else
{
SetVehicleParamsEx(vehicleid, engine, lights, alarm, true, bonnet, boot, objective);
GameTextForPlayer(playerid,"~b~Masina incuiata!",3000,4);
}
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu esti soferul masinii");
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu este masina ta");
}
else
SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}Trebuie sa te aflii intr-o masina");//the error message.
return 1;
}[/pawn]
Ai incercat sa rezolvi singur ?: Da, dar nici o reusita!
-
Nume: Pinki95
Descriere Problema: Imi da Warning 213 si nu stiu cum sa o rezolv la linia: if (doors == true)
Pawno Code:
[pawn]CMD:lock(playerid, params[])
{
new engine, lights, alarm, doors, bonnet, boot, objective;
new vehicleid = GetPlayerVehicleID(playerid);//defining vehicleid is = to GetPlayerVehicleID.
SendAdminText(playerid, "/lock", params);
if(IsPlayerInAnyVehicle(playerid))//Thsi will check that is a player In a vehcile or not.
{
if (AVehicleData[GetPlayerVehicleID(playerid)][Owned] == true)
{
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);//will check that what is the state of the vehicle lock.
if (doors == true)
{
SetVehicleParamsEx(vehicleid, engine, lights, alarm, false, bonnet, boot, objective);
GameTextForPlayer(playerid,"~r~Masina descuiata!",3000,4);
}
else
{
SetVehicleParamsEx(vehicleid, engine, lights, alarm, true, bonnet, boot, objective);
GameTextForPlayer(playerid,"~b~Masina incuiata!",3000,4);
}
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu esti soferul masinii");
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu este masina ta");
}
else
SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}Trebuie sa te aflii intr-o masina");//the error message.
return 1;
}[/pawn]
-
Nick: Pinki950
Problema: Cum as putea pune la comanda de mai jos si Interiorul (X, Y, Z, Interior-ID)
[pawn]COMMAND:portloc(playerid, params[])
{
// Setup local variables
new Float:x, Float:y, Float:z, PortMsg[128];
// Send the command to all admins so they can see it
SendAdminText(playerid, "/portloc", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] >= 1)
{
// Check if the player has a wanted level of less than 3
if (GetPlayerWantedLevel(playerid) < 3)
{
// Check if the player is not jailed
if (APlayerData[playerid][PlayerJailed] == 0)
{
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Ex: \"/portloc <x> <y> <z>\"");
else
{
// Port the player to the given location
SetPlayerPos(playerid, x, y, z);
// Let the player know about it
format(PortMsg, 128, "Te-ai teleportat la locatia: %4.2f, %4.2f, %4.2f", x, y, z);
SendClientMessage(playerid, 0x00FF00FF, PortMsg);
}
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu poti utiliza /portloc at cand esti in inchisoare");
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu poti utiliza /portloc at cand esti urmarit");
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}[/pawn]
-
Vreau sa Creez o comanda pe ZCMD care sa aiba pe langa coordonatele X, Y, Z si Interior ID!
Un pic de ajutor pls
-
Topic Solved!
[pawn]#define FILTERSCRIPT
#include <a_samp>
#include <Dini>
#include <dudb>
new Float:positionx;
new Float:positiony;
new Float:positionz;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" De la Alexica721 pt voi ");
print("--------------------------------------\n");
return 1;
}
public OnPlayerConnect(playerid)
{
LoadStats(playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new Float:x;
new Float:y;
new Float:z;
GetPlayerPos(playerid,x,y,z);
positionx = x;
positiony = y;
positionz = z;
if (!dini_Exists(Pos(playerid)))
{
dini_Create(Pos(playerid));
}
SaveStats(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
if (!dini_Exists(Pos(playerid))) {
SetPlayerPos(playerid, 1676.8462, 1447.7908, 10.7833);
}
else
{
SetPlayerPos(playerid, positionx,positiony,positionz);
}
return 1;
}
Player(playerid)
{
new player[MAX_PLAYER_NAME];
GetPlayerName(playerid, player, sizeof(player));
return player;
}
Pos(playerid)
{
new a[256]; format(a, sizeof(a), "%s.ini",udb_encode(Player(playerid)));
return a;
}
SaveStats(playerid)
{
dini_IntSet(Pos(playerid), "PositionX", floatround(positionx));
dini_IntSet(Pos(playerid), "PositionY", floatround(positiony));
dini_IntSet(Pos(playerid), "PositionZ", floatround(positionz));
}
LoadStats(playerid)
{
positionx = dini_Int(Pos(playerid), "PositionX");
positiony = dini_Int(Pos(playerid), "PositionY");
positionz = dini_Int(Pos(playerid), "PositionZ");
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Nimic de spus");
print("----------------------------------\n");
}
#endif[/pawn]
-
Este versiune noua aparuta?
-
Chestia asta se intampla de exemplu atunci cand pui un mod la o masina ex BMW si BMW-ul acela il duci la tunning si il tunezi
La vehiculele modate nu este permis decat schimbarea urmatoarelor lucruri: Culoare, Car Bass Bot, Hydraulics, Roti/Wheels, Nitro!
Tunningul la BMW cu Spoiler, Side Skirt duce la Crash Server ex: Erorile din Poza!
-
Cum as putea face ca atunci cand un player sa deconectat de pe server sa i se salveze pozitia x, y, z, iar cand se va conecta sa il spawneze in locatia salvata?
-
daca mi-ai da si un exemplu de timer cu nu ma prea am cu ele +1
-
Am o problema in loc sa cante radioul in zona respectiva x, y, z imi face spam de "N" ori cu radioul!
Ex: PlayAudioStream http....
PlayAudioStream http....
PlayAudioStream http....
PlayAudioStream http....
[pawn]public OnPlayerUpdate( playerid )
{
new
bool: bPlay = false;
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( IsPlayerInRangeOfPoint( i, 7.0, -2293.3921, -1632.9829, 485.1299) && bPlay == false )
{
bPlay = true;
PlayAudioStreamForPlayer( i, "http://www.radiowish.ro/live.m3u" );
}
else if( bPlay == true )
{
StopAudioStreamForPlayer( i );
bPlay = false;
}
}
return 1;
}[/pawn]
-
Am aceasta comanda:
[pawn]// Refuel the player's vehicle
COMMAND:fuel(playerid, params[])
{
// Setup local variables
new vID;
// Send the command to all admins so they can see it
SendAdminText(playerid, "/fuel", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] >= 1)
{
// Check if the player is inside a vehicle
if (IsPlayerInAnyVehicle(playerid))
{
// Get the vehicleid
vID = GetPlayerVehicleID(playerid);
// Refuel the vehicle
AVehicleData[vID][Fuel] = MaxFuel;
// Let the player know about it
SendClientMessage(playerid, 0x00FF00FF, "Your vehicle is refuelled");
}
else
SendClientMessage(playerid, 0x00FF00FF, "You're not driving a vehicle");
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}[/pawn]
si vreau sa o modific sa alimenteze toate masinile de pe server, cum procedez?
-
Vreau un tutorial in care sa imi salveze urmatoarele ADMIN, Bani, Score, Timp stat pe server!
Dar sa fie unu Bun ca am rasfoit jumate de samp-scripts.com
-
Cu as putea face un PlayAudioStreamForPlayer dar sa mearga doar in GangZones?
-
MS!
-
OnGameModeInit
-
Verifica daca ai includele version 0.3x
-
Undefined simbol "playerid" Linia: [pawn]PlayAudioStreamForPlayer(playerid, "http://www.radiowish.ro/live.m3u", 10.00, 10.00, 5.00, 50.00, 0);[/pawn]
Cerere Tutorial
in Cereri Tutoriale
Posted
Nume: Pinki95
Nume tutorial: Auto Spawn
Descriere: Cum fac ca atunci cand ma loghez sa nu mai trebuiasca sa dau pe spawn button( [ {<<} {>>} {Spawn} ] ) adica sa ma spaneze automat?