Search Results
pawn Код: GetVehicleInterior(vehicleid) Would be very useful
6,432
It should work like this: pawn Код: PlayerInfo[playerid][pMaterials] = PlayerInfo[playerid][pMaterials]+payout;PlayerInfo[playerid][pMaterialsPack] = PlayerInfo[playerid][pMaterialsPack]-packets;
220
Once you're in game, use "/save" command and your informations will be saved into a file (Position, Angle, etc) And that file can be found in My Documents\GTA San Andreas User Files\SAMP\ with name s...
108
Scripting RolePlay script can take you even few years. You should first ask yourself are you ready for that challenge. And yeah, here's few useful tutorials for you. https://sampforum.blast.hk/showth...
150
Very nice idea. I made a small script simular to your idea, It is used once an admin clicks on a player (TAB then double click on player). This can be helpful for you as this fs uses dialog. Edit it a...
147
https://sampforum.blast.hk/showthread.php?tid=470093
90
Same, Still not loading. here's printf line after cmd /createhouse 3 106 30000 Quote: HouseID 3 | UniqInteriorID: 106 | Interior: 0 | X: 0.0000 | Y: 0.0000 | Z: 0.0000 | OutsideInt: 0 | O...
154
It does not reading from the file. Everything I tried to get from a file was 0.0 -.- pawn Код: CMD:createhouse(playerid, params[]){    new hinterior, hcost, HID;    if(sscanf(params, "ddd", HI...
154
Quote: Originally Posted by Jefff pawn Код: new File:HouseFile = fopen(filename_here, io_read);if(!HouseFile) return file bla bla doesnt existnew string[128], unique, interior, Float:P...
154
Read #5 post in this thread.... Hello all, Im trying to read a specific line from file "interiors" (Grand Larceny file by Kye). Once you do /createhouse [Interior ID] It will search for Uniq Interio...
154
Quote: Originally Posted by BenzoAMG pawn Код: format(vplates, sizeof(vplates), "%c%d%d-%c-%d%d%d", random(26) + 65, random(10), random(10), random(26) + 65, random(10), random(10), ra...
124
Quote: Originally Posted by BenzoAMG That's a horrible way to do it, but alright. Whatever suits you I guess.. Horrible, but works.
124
I have read a bit on sampwiki and found a soultion like this, works very well. pawn Код: new rand1 = random(sizeof(RandomPlate1));        new rand2 = random(sizeof(RandomPlate2));        n...
124
Im trying to make a random vehicle's plates, for the vehicles you create with a cmd. This is how I did it. The example of licenses plates should be "A95-N-851" pawn Код: // under /vehicle comman...
124
Already using latest version, but I tried updating again and recompiling, not worked.
77
Im using YSI for file saving, like player info and vehicles in my script. I made saving sistem for both about 2 months ago and everything was fine. Saving, loading, everything. There were no problems ...
77
Alright, that worked, but I cannot turn on owned vehicles now. this part doesn't work now -.- pawn Код: else if(GetPlayerName(playerid, name, sizeof(name)) == VehicleInfo[vid][vOwner])       ...
177
This is how I made it, but when I try to start vehicle owned by State, it tells me that I don't have a key's... pawn Код: CMD:start(playerid, params[]){    #pragma unused params    new vid = ...
177
What is wrong here? pawn Код: CMD:teleport(playerid, params[]){    new place; // Also tried with string (new place[8];)    if(sscanf(params, "i", place)) return       SendClientMessage(play...
56