Search Results
Use SetVehicleVelocity(vehicleid, Float, Float:y, Float:z); https://sampwiki.blast.hk/wiki/SetVehicleVelocity Just get the speed of the player, then if he is going higher then 100 kph, reduce his ve...
148
Those are basic codes, you'll need to adapt them to fit your script. pawn Code: new found = 0;new passengerid;for(new i = 0; i<MAX_PLAYERS; i++){    if(GetPlayerVehicleID(playerid) == GetPlayer...
76
If you don't have the .pwn file, you can't upgrade your server to 0.3d, 0.3e or 0.3x. You would need to compile your gamemode with the newest version, which you can't do without .pwn. If you bought y...
79
I guess you only tested it out if the Non-Gouvernment player has an ID above yours. Your problem is that if there is an CIA agent, cop, army or medic, you automaticly stop the timer. Код: if (g...
66
Because you wrote if the vehicle model is 574, then show the textdraws. But any other vehicle than 574 show me the message "* You are not a street cleaner!". I guess you wanted to have this: pawn ...
111
format(info,sizeof(info), "______________________OPSTO__________________ ____ ");
55
Check if the player tipes off before checking for any ID. Ex: pawn Код: command(specnew, playerid, params[]){    if(strcmp(text, "off", true) == 0)    {        //your codes    }    e...
142
Quote: Originally Posted by verlaj the problem could be with Map1 and Map2 stuff, it usually works if i only write ShowPlayerDialog, it seems i need to create new function for that No...
115
Of course it's not destroying the object, look, you did new DropObject[MAX_DROP_ITEMS]; in the command, it should be a global variable ( at the top of your script ) so when you drop the object you ...
151
The reason is that you reset all the values before even giving the weapon to the player. Try this: pawn Код: CMD:recojerarma(playerid, params[]){    new string[128];    new playername[MAX_PLA...
151
I don't think you can, but why not just making this? pawn Код: stock GetPnameid(pid){    new pname[MAX_PLAYER_NAME];    GetPlayerName(pid, pname, sizeof(pname));    return pname;} Anyways,...
66
In your OnPlayerEnterCheckPoint or OnPlayerEnterEnterRaceCheckPoint, you will simply add on the last checkpoint SetVehicleToRespawn(GetPlayerVehicleID(playerid));
66
Then try this: pawn Код: if(getPlayerVID(playerid) == GetPlayerVehicleID(playerid)) {        SendClientMessage(playerid, -1, "Engine started");        allowed= 1;    } else {       ...
141
pawn Код: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){    switch(dialogid)    {        case 1:        {            if(response)            ...
198
Quote: Originally Posted by BenzoAMG pawn Код: stock LoadPlates(){    for(new i = 0; i < MAX_VEHICLES; i++)    {            if(IsCopVehicle(i)) return SetVehicleNumberPlat...
94
vehicleid could be everything. It's only a variable tho. The one that make your script could have wrote 'vid', 'vehid', 'potato'. He just wanted the codes to be understandable so he wrote vehicleid. ...
156
Like IPrototypeI said, the errors are from the include because you have defined string somewhere in global variable in your script. 1-Ctrl+F 2-Type in "new string[" 3-Look at the results, if there is...
128
For the 11/all warnings, it's because you have defined "string" somewhere in your script as a global variable. Just erase it and then compile.
128
Try and you'll see, no? Give a player 100$, then rob him, if you rob him 5$, then it works, if not, it doesn't.
103
new Float:health; GetPlayerHealth(playerid, health); if(IsPlayerInWater(playerid) && health > 0.0)
193