Search Results
I don't see why you don't just save everything to variables when the person disconnects, then query the mysql database with those variables
118
PHP код: mysql_query("UPDATE cars SET lock=0, vehcoms='0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0', paintjob=0 WHERE id=1");  That?
130
I believe for dcmd you have to have extra code to declare the command; dcmd(name, lengthofname, cmdtext); So for yours, it would be dcmd(duty, 4, cmdtext); I think. I'm not overly familiar with dcm...
159
pawn Код: new CurrentCar[MAX_PLAYERS];..public OnPlayerConnect(playerid) {   CurrentCar[playerid] = -1;}..//When spawning a car:if(CurrentCar[playerid] != -1) DestroyVehicle(CurrentCar[playerid]...
80
pawn Code: dcmd_duty(playerid,params[]){    new string[128];    new aname[MAX_PLAYER_NAME];    if(!IsPlayerAdmin(playerid)) return 0;    else return SendClientMessage(playerid,red,"ERROR: You...
159
I've seen this forever, and everywhere - but I can't work out how to do it without spending a gazillion hours getting specific co-ordinates. How can I find out what someone's location is i.e. Angelpi...
95
pawn Код: public OnPlayerDisconnect(playerid, reason){    if(LoggedIn[playerid] == 1) SavePlayerAccount(playerid);    ResetPlayerVariables(playerid);    return 1;}public OnPlayerSpawn(player...
164
299 Is the skin I want them to spawn in. The problem is, it's not changing them to that skin even though I explicitly SetPlayerSkin. For some reason, the player has to be killed before their skin will...
164
Quote: Originally Posted by TaMeD pawn Код: SetPlayerSkin(playerid, 299); Is what's in the callback. As I updated in my OP, the OnPlayerSpawn isn't even being called when the user is...
164
Quote: Originally Posted by =WoR=G4M3Ov3r Check your SetPlayerSkin under the OnPlayerSpawn callback, and make sure the skin isn't set to PedSkin. What do you mean by this? pawn Код...
164
Alright, so I'm scripting my own server from scratch, and I've gotten pretty far in so far. However, I've come across a problem where if I shut down the server, then restart it - and the user hasn't r...
164
What I did was, spawned them (frozen under the camera in their own virtual world), did the dialogs, then respawned them with the correct information. Worked flawlessly.
192
Actually, that's a great idea. Just freeze them, change where the camera's looking at and do the dialogs then. Thanks buddy.
192
Hey there. My problem is that I would like to effectively disable or bypass class selection. I've made a registration system that uses multiple dialogs to get information from the user. However, after...
192
Alright, so I've made a system where if someone hits something while driving, and their vehicle takes damage, then they take a portion of damage too. However, I'm having some trouble with this. When t...
51
I was wondering whether anyone had a database of vehicle statistics? For example, a database of the max speeds of each vehicle Cheers!
63
I am using 0.3c, so I don't know if that'll affect this script or not.. pawn Код: #define PRESSED(%0) \    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))public OnPla...
59
Alright, so, I hate asking for help sometimes.. but I don't know what's happening. pawn Код: stock GetPlayerSpeed(playerid){    new Float:ST[4];    if(IsPlayerInAnyVehicle(playerid)) GetVehic...
55