[MTA 1.0.4 conversion added!] Xtreme Pawnferter V1.7.1 -
gamer931215 - 07.08.2010
Updated!
_______ Functions:_______
MTA Race 1.1.1 Converts:
(*) CHECKPOINTS!
(*) Objects
(*) Vehicles
MTA 1.0.4 Converts:
(*) Vehicles
(*) Objects
____ Future plans for V2:____
(*) Support multi-race
(*) Fix the 2nd conversion mode
_______Screenshot:_______
_______Video:_______
[ame]http://www.youtube.com/watch?v=tjPWSyIkW3E[/ame]
______ Changelog:______
V1.1: Fixed bug line commands
V1.2-1.6: Fixed calculation problem and added compability modus which is improved in each version
V1.7: MTA 1.0.4 Map Editor compability added!
________ Bugs:________
If you get errors/problems, just hit the checkbox at the app,
and it should convert in a second mode that i added.
Then the problem with the .NET DLL's should be fixed!
No bugs for so far i know
______ Download:______
Download updated version (1.:
http://solidfiles.com/d/3ba0/
http://www.megaupload.com/?d=XUECJB9U
Xtreme Pawnferter - Script -
Crusher!! - 07.08.2010
Script
-------------------------
Scripting
______________________________________
Information
The generator generates a file
Race.Crshr, if you change anything in that file.
maybe your checkpoints/vehicles/objects won't work anymore!
To edit the checkpoints, use the
Generated_Pawn.pwn file.
You can only have one
Race.Crshr in a directory.
______________________________________
Callbacks
Because i used some callbacks i has to make new one.. and here they are.
Code:
public Crshr_Init()
{
return 1;
}
This is a replace for OnGameModeInit and OnFilterScriptInit, server reeds it after filterscript loade and after a GMX.
Code:
public Crshr_Exit()
{
return 1;
}
This is a replace for OnGameModeExit and OnFilterScriptExit, The server reeds when you unload the filterscript or before a GMX.
Code:
public OnPlayerRaceStart(playerid)
{
return 1;
}
Called when a race starts for a player, you can put here things like
Code:
GameTextForPlayer(playerid,"~w~Youre race is started!",3000,5);
Code:
public OnPlayerFinish(playerid,CheckPoint)
{
return 1;
}
Replaces the OnPlayerEnterRaceCheckpoint and add's a checkpoint ID, You can use the checkpoint ID for a text message count or whatelse, The CheckPoint ID is the checkpoint what the player just enter'd
Code:
switch(CheckPoint)
{
case 1:
{
SendClientMessage(playerid,COLOR_BLUE,"You reached checkpoint 1!");
}
case 2:
{
SendClientMessage(playerid,COLOR_BLUE,"You reached checkpoint 1!");
}
}
// Or...
if(CheckPoint == 8)
{
SendClientMessage(playerid,COLOR_BLUE,"Congrets!. You finished the race");
}
Some ideas
Code:
public OnPlayerRaceStop(playerid)
{
return 1;
}
Called when a race stop for a player. Again for a message or a varible.
______________________________________
Functions
This function starts the race for all players that are on the server.
Code:
StartRaceForPlayer(playerid)
Start a race for a specific player
- playerid - a ID of a online player
This function stops the race for all playes that are on the server.
Code:
StopRaceForPlayer(playerid)
Stops a race for a specific player
- playerid - a ID of a online player
Code:
ShowCheckPointCount(bool:Show)
There is a build in Checkpoint counter
Checkpoint: ?/?. That can be turned off/on. default its turned ON!.
- Show - On = true, Off = false
Code:
IsPlayerRacing(playerid)
This line checks if the player is racing, returns true while racing, else false.
- playerid - a ID of a online player
Code:
//maybe for a teleport
if(!IsPlayerRacing(playerid)) SetPlayerPos(1234.0,1234.0,10.0);
Checks if there is a race at the moment
Code:
// A message?
if(IsRaceGoing()) SendClientMessageToAll(COLOR_BLUE,"Go Racers Go!");
Code:
SetSpecificCar(model)
You can set the option. that you only can drive this race with 1 type of vehicle.
- model - Vehicle Model, can be turned off with 0
Code:
SetCheckPointSize(size)
Change the size of the checkpoints, Default its 8
- size - The size you want your checkpoints. starting at 0
Code:
SetCheckPointSize(size)
Change the size of the finish checkpoint, Default its 10
- size - The size you want your finish checkpoint . starting at 0
______________________________________
Re: Xtreme Pawnferter -
Toni - 07.08.2010
Love your stuff and always will
great job!
Re: Xtreme Pawnferter -
Kyosaur - 07.08.2010
I suggest instead of having it generate pawn code, you add support for race engines that are already made / have been released here. First reason would be that they are already made, and second is because if you generate pawn code, it would be a filterscript for a single race. If you make it support premade race engines, you'll be allowing more races (max filterscripts = 16).
EDIT:
You should add support for 1.0 as well, since race is depreciated and unsupported.
Re: Xtreme Pawnferter -
gamer931215 - 07.08.2010
Quote:
Originally Posted by Kyosaur
I suggest instead of having it generate pawn code, you add support for race engines that are already made / have been released here. First reason would be that(...)
|
Well, first we keep it like this way. It was pretty much work to do, but maybe we can do this on V2 if we need to re-do a lot of things, this can be done too . Ill keep it in mind
ty for the tip
Re: Xtreme Pawnferter -
gamer931215 - 07.08.2010
UPDATED!
Re: Xtreme Pawnferter -
Crusher!! - 07.08.2010
Dubbel post O.o
Re: Xtreme Pawnferter -
DiddyBop - 07.08.2010
Good Job
Re: Xtreme Pawnferter -
Crusher!! - 07.08.2010
Quote:
Originally Posted by LilGunna
Good Job
|
Thnx (A)
Fixed..
Re: Xtreme Pawnferter -
gamer931215 - 07.08.2010
Quote:
Originally Posted by Crusher!!
Converting objects does'nt work again not. gonna fix fast as i can and reupload
|
Try again/check your info before commenting that, everything works for me now
?
EDIT: I uploaded wrong .rar file ! sorry,
it should be fixed now.
Re: Xtreme Pawnferter -
ViruZZzZ_ChiLLL - 07.08.2010
Look's awesome =D I'll try it out =)
Re: Xtreme Pawnferter -
Lorenc_ - 07.08.2010
Quote:
Originally Posted by SA-MP
No more APP releases.
We've had a few instances on this forum over the years where people have posted APPs disguising them harmless programs when they are in fact malicious trojans. People on this forum usually do not know how to compile from the source and they think if their virus scanner returns 'not infected' that the programs are safe. This is not always the case.
The decision has been made to no longer allow any application (APP) releases directly on the forum. Legitimate tools useful for helping develop SA-MP modes should be released on the wiki and they must be reviewed by members of the SA-MP beta team or trusted SA-MP members for safety
|
I thought we have to follow that? not abuse.
Nice anyways.
Re: Xtreme Pawnferter - [03]Garsino - 07.08.2010
Would be good if you could make the same app for MTA DM too
Excellent work though, I like the checkpoint converting part
Re: Xtreme Pawnferter -
Crusher!! - 07.08.2010
Quote:
Originally Posted by Lorenc_
I thought we have to follow that? not abuse.
Nice anyways.
|
If everyone follow the rules than are administrators and moderators useless..
And they say stil "Tools" in sub-forum.
Re: Xtreme Pawnferter -
gamer931215 - 07.08.2010
Quote:
Originally Posted by [03]Garsino
Would be good if you could make the same app for MTA DM too
Excellent work though, I like the checkpoint converting part
|
MTA DM = MTA 1.0 ??
I had more requests for doing MTA 1.0, so that will come in V2
first i have to fix a major bug
at windows XP it doesnt convert the rotations corrent from radians to degrees :S it will split the value in two parts
Re: Xtreme Pawnferter -
gamer931215 - 07.08.2010
Quote:
Originally Posted by Lorenc_
I thought we have to follow that? not abuse.
Nice anyways.
|
I tried following that, result ? App got removed from the wiki (same reaction, not allowed anymore) . So then i couldnt release this at all !, i just hope that admins would approve it.
I really wont upload trojans/stuff, i like more creating usefull tools instead of harmless shit.
Re: Xtreme Pawnferter -
ViruZZzZ_ChiLLL - 07.08.2010
I don't get it...
1.) I open your Pawnferter.
2.) Click the "Load a Map"
3.) Click my .map (notepad) file.
4.) It says convertion is finished but it only shows :
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{ //converted with Gamer931215's Xtreme pawnferter
//objects:
//cars:
}
Doesn't even convert objects, and vehicles.
+ On your update, can you not make it over-write the file?
Re: Xtreme Pawnferter -
gamer931215 - 07.08.2010
Quote:
Originally Posted by ViruZZzZ_ChiLLL
I don't get it...
(...)
+ On your update, can you not make it over-write the file?
|
Let me guess, windows xp ?
We found a major bug, at windows xp its completely f*cked up :S it wont even calculate the rotations but give weird numbers and extra commas
Re: Xtreme Pawnferter -
Hiddos - 07.08.2010
Woohoo. Sweet man, good job. You rock!
Re: Xtreme Pawnferter -
Crusher!! - 07.08.2010
Quote:
Originally Posted by Hiddos
Woohoo. Sweet man, good job. You rock!
|
Wie ik of die beunhaas?