Create Ingame Bots and Play Them ?
#1

Hello guys,
First: Sry for my bad english

Ok
Itґs achievable to create Bots ingame? Example: /rb NAME (/rb test) Then all what you do are record and with /stop you can Stop the Record
And then ingame type /pb NAME (/pb test) and then the Bot will play..
Hmm how i can make a Script for this?

Hmm i hope one can help me

I have make this Question in the German Forum too
Link: http://forum.sa-mp.de/wbb/san-andrea...g-base/scriptwьnsche/25124-bots-ingame-erstellen-profi-scripter-gefragt/

PWN Code from DogZone:
if (strcmp("/rb", cmdtext, true, 10) == 0)
{
tmp = strtok(cmdtext,idx);
if(!tmp[0])return SendClientMessage(playerid,ROT,"Use: /rb [Name]");
if(newstate == 2){
StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_DRIVER, tmp);
SendClientMessage(playerid, 0xFFFFFFFF, "Type: Vehicle : Record Start");
}
else if(newstate == 1){
StartRecordingPlayerData(playerid, PLAYER_RECORDING_TYPE_ONFOOT,tmp);
SendClientMessage(playerid, 0xFFFFFFFF, "Typ: On Foot : Record Start");
}
return 1;
}
if (strcmp("/pb", cmdtext, true, 10) == 0)
{
new tmp[64];
tmp = strtok(cmdtext,idx);
if(!tmp[0])return SendClientMessage(playerid,ROT,"Use: /pb [Name]");
ConnectNPC(tmp,"BotFS");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)