Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 424 online users. » 1 Member(s) | 419 Guest(s) Google, Bing, Discord, Yandex, Phoenixx
|
Latest Threads |
Original Godfather
Forum: Pawn Scripting
Last Post: NmE
Yesterday, 11:48 AM
» Replies: 3
» Views: 121
|
What would you start?
Forum: Life
Last Post: vuongtrungnu13
Yesterday, 01:55 AM
» Replies: 4
» Views: 9,766
|
People who have one of th...
Forum: Tech
Last Post: vuongtrungnu13
Yesterday, 01:39 AM
» Replies: 2
» Views: 5,138
|
After School Community
Forum: Advertisements
Last Post: cosminupgaming
2025-10-19, 12:42 PM
» Replies: 0
» Views: 60
|
[SDK] SDK C++ MODERNO
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-10-19, 02:18 AM
» Replies: 0
» Views: 27
|
[SDK] SDK C++ MODERN
Forum: Tech
Last Post: Crazy_ArKzX
2025-10-19, 02:17 AM
» Replies: 0
» Views: 35
|
Need assistance
Forum: Pawn Scripting
Last Post: Cappsy
2025-10-18, 02:29 AM
» Replies: 1
» Views: 69
|
Magyar
Forum: Hungarian/Magyar
Last Post: Cappsy
2025-10-18, 02:19 AM
» Replies: 33
» Views: 62,886
|
United Gaming Life Rolepl...
Forum: Advertisements
Last Post: Cruncher
2025-10-17, 08:33 PM
» Replies: 1
» Views: 424
|
Tierra Robada Roleplay [E...
Forum: Advertisements
Last Post: Vicee
2025-10-14, 04:00 PM
» Replies: 0
» Views: 84
|
|
|
[Help] - Park vehicle cmd issues |
Posted by: Disretired - 2021-01-20, 12:15 AM - Forum: Pawn Scripting
- Replies (4)
|
 |
Hello all, myself and a group of friends are working on a server and have noticed an issue with our park vehicle command.
The command only parks the car in Virtual World 0, we wanted to do dynamic garages, but when we /park in a garage with another VW other then 0 the car disappears and is parked in the VW 0 instead of the VW the garage is set too.
I've attached the command below if anyone can point out the issue, this is the command we had when we first started the project, I myself am still getting the hang of pawn so not sure what the problem is that's causing it to only park in VW 0.
Code: CMD:park(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2 || PlayerInfo[playerid][pDonateRank] == 5)
{
new playerpark;
if(!sscanf(params, "i", playerpark))
{
for(new d = 0; d < MAX_PLAYERVEHICLES; d)
{
if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerpark][d][pvId]))
{
new Float:x, Float:y, Float:z, Float:angle, Float:health;
GetVehicleHealth(PlayerVehicleInfo[playerpark][d][pvId], health);
if(PlayerInfo[playerpark][pLockCar] == GetPlayerVehicleID(playerid)) PlayerInfo[playerpark][pLockCar] = INVALID_VEHICLE_ID;
GetVehiclePos(PlayerVehicleInfo[playerpark][d][pvId], x, y, z);
GetVehicleZAngle(PlayerVehicleInfo[playerpark][d][pvId], angle);
SurfingCheck(GetPlayerVehicleID(playerid));
UpdatePlayerVehicleParkPosition(playerpark, d, x, y, z, angle, health);
PutPlayerInVehicle(playerid, PlayerVehicleInfo[playerpark][d][pvId], 0);
SetPlayerArmedWeapon(playerid, 0);
new string[30 (MAX_PLAYER_NAME * 2)];
format(string, sizeof(string), "* %s has parked %s's vehicle for them.", GetPlayerNameEx(playerid), GetPlayerNameEx(playerpark));
new szMessage[128];
format(szMessage, sizeof(szMessage), "AdmCmd: %s has parked %s's vehicle for them", GetPlayerNameEx(playerid), GetPlayerNameEx(playerpark));
ABroadCast(COLOR_LIGHTRED,szMessage, 2);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
}
SendClientMessageEx(playerid, COLOR_GRAD1, "You need to be in a player owned vehicle");
}
else
SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /park <playerid>");
}
else
SendClientMessageEx(playerid, COLOR_GRAD1, "Park is now an moderator command to combat abuse. /requesthelp or /am to an admin to get a car parked at your house.");
return 1;
}
|
|
|
[AJUDA]EditDynamicObject |
Posted by: willian franco - 2021-01-19, 07:24 PM - Forum: Portuguese/Portugu?s
- Replies (2)
|
 |
os players android n?o est?o conseguindo editar o?EditDynamicObject port?o, caixa ou acess?ria?
isso ? problema do APK que nao tem esse sistema ou tem um sistema diferente para colocar e funcionar no android ?
obrigadoo
|
|
|
Help: warning 213 tag mismatch |
Posted by: Behemoth - 2021-01-19, 06:17 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Heyo,
recently got back into scripting, and trying to create a function.
"function:SetPlayerCamera(playerid)"
When I compile, I get warning "warning 213: tag mismatch: expected tag "Function", but found none ("_")"
It seems to be with the tag "function", but when I remove it, it works fine. This only seems to be an issue in the new compiler, but I'm struggling to understand why. Could someone please explain what this warning actually means and what best practice would be?
cheers,
|
|
|
skwl_dccmd |
Posted by: MySekwel - 2021-01-19, 04:50 PM - Forum: Libraries
- No Replies
|
 |
A simple discord-connector command processor to?ease command creation for your discord bot!
that's it bro. yes. bye bye.
|
|
|
[HELP] Weapon on NPCs |
Posted by: spyrothedragon96 - 2021-01-19, 03:28 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hello everyone.
I have a problem with NPCs on UG-MP (GTA Underground Mod).
Via an fs, I can make the NPCs in game, but if I make them with a weapon, the weapon never appears on them.
On the regular SA-MP game, however, the weapons on the NPCs always appear.
I tried to update all plugins, includes, but nothing to do.
I also tried to make a command to send the weapons to the NPCs, but nothing.
Why don't weapons appear on NPCs on UG-MP, while on normal SA-MP they always appear?
Is it a client's problem???
|
|
|
Rustler Damage to NPC. |
Posted by: Axl - 2021-01-19, 02:05 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hey guys, im using the FCNPC plugin from?https://github.com/ziggi/FCNPC.
I'm trying to kill a NPC with the mounted guns from the Rustler. But the NPC isn't taking any damage. Is there any way to work around this?
Thanks.
|
|
|
MySQL Query ~ Which one is the most efficiency? |
Posted by: LinesinRows - 2021-01-19, 12:57 PM - Forum: Support
- Replies (1)
|
 |
Code: "UPDATE `players` SET q = %d, w= %d, e = %d, r = %d, t = %d, y = %d, u = %d, o = %d, a = %d, s = %d?WHERE userid = %d", q, w, e...
mysql_tquery(blabla);
vs
"UPDATE `players` SET q = %d, w = %d, e = %d, r = %d, t = %d?WHERE userid = %d", q, w, e...
mysql_tquery(blabla);
"UPDATE `players` SET y= %d, u = %d, o = %d, a = %d, s = %d?WHERE userid = %d", y, u, o...
mysql_tquery(blabla);
? Which one and why??
? Thanks for now.
|
|
|
|