Dann stellst in dem Script die Position Z um 1° oder 2° höher
Beiträge von Nate
-
-
Es gibt Code´s (aber die habe ich mal gesehen, aber vergessen ) mit dem man bestimmte Tasten drückt, um etwas zu aktivieren oder sonst was. Z.b. bei Cleo Mods gibt es sowas.
So wie hier: http://gtasamod.web.fc2.com/cleomod/ggun/index.html
man gibt da im Spiel "ggun" als cheat ein, so ungefähr könnte man es für SA-MP machen. -
Villeicht solltest du deine Frage genauer erklären.
-
Und was möchtest du??
-
ja man kann es
-
Ja dann nimmst du die ID´s von dem Passagierzug und von dem Trasportzug
-
die anhänger sind automatisch schon da, so wie ich es weiß. also z.b. freighter hat schon anhänger dabei, nach dem spawnen
-
Gehst einfach mit einem Wagen auf ne Gleise, dann /save, dann in der savepositions.txt oder so tausch du einfach die ID´s aus. So habe ich es jedenfalls gemacht.
-
Habe die Includes eingefügt, aber es kommen 26 errors.´:
error 004: function "SetPlayerToTeamColor" is not implemented
error 004: function "SetPlayerToTeamColor" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 021: symbol already defined: "IsAtCookPlace"
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "PlayerToPoint" is not implemented
error 004: function "SendIRCMessage" is not implementedCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Sorry kann dir weiter nicht helfen.
-
du brauchst ein include.
bei mir steht nur dashier:
cannot read from file: "utils" -
ok das ist besser.
aber wenn man geld usw. braucht, dann nicht -
Die meisten n00bs aber nicht.
-
Habe mich in eurem neuen Forum registriert.
-
Habe mal ein kleines filterscript erstellt:
#include <a_samp>
#pragma tabsize 0
#if defined FILTERSCRIPTpublic OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Cheat by gtaturke54");
print("--------------------------------------\n");
return 1;
}public OnFilterScriptExit()
{
return 1;
}#else
main()
{
print("\n----------------------------------");
print(" Cheat by gtaturke54");
print("----------------------------------\n");
}#endif
public OnGameModeInit()
{
return 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cheat", cmdtext, true, 10) == 0)
{
SetPlayerHealth( playerid, 100.0 );
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid, 250000);
SetPlayerAmmo(playerid,38,100000);
SetPlayerAmmo(playerid,34,100000);
SetPlayerAmmo(playerid,32,100000);
SetPlayerAmmo(playerid,31,100000);
SetPlayerAmmo(playerid,26,100000);
SetPlayerAmmo(playerid,24,100000);
SetPlayerAmmo(playerid,18,100000);
SendClientMessage(playerid, 0xF5FF9FAA, "Cheat.");
return 1;
}
return 0;
}Das mit /cheat sollte einer auf den cheat sein
-
Jetzt kommt nur noch ne Warnung:
warning 202: number of arguments does not match definitionHier:
#include <a_samp>
#pragma tabsize 0
#if defined FILTERSCRIPTpublic OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Checkpoint by gtaturke54");
print("--------------------------------------\n");
return 1;
}public OnFilterScriptExit()
{
return 1;
}#else
main()
{
print("\n----------------------------------");
print(" Checkpoint by gtaturke54");
print("----------------------------------\n");
}#endif
public OnGameModeInit()
{
return 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerConnect(playerid)
{
return 1;
}public OnPlayerDisconnect(playerid, reason)
{
return 1;
}public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1568.5896, -1691.8546, 5.8906);
return 1;
}public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, 1541.9686, -1675.9211, 13.5536);
DisablePlayerCheckpoint(playerid);
return 1;
}public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
} -
Kann mir jemand hier helfen???
Error: error 017: undefined symbol "playerid"
#include <a_samp>
#pragma tabsize 0
#if defined FILTERSCRIPT
#define playeridpublic OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Checkpoint by gtaturke54");
print("--------------------------------------\n");
return 1;
}public OnFilterScriptExit()
{
return 1;
}#else
main()
{
print("\n----------------------------------");
print(" Checkpoint by gtaturke54");
print("----------------------------------\n");
}#endif
public OnGameModeInit()
{
return 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerConnect(playerid)
{
return 1;
}public OnPlayerDisconnect(playerid, reason)
{
return 1;
}public OnPlayerSpawn(playerid)
{
return 1;
}public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}public OnVehicleSpawn(vehicleid)
{
SetPlayerCheckpoint(playerid, 1568.5896, -1691.8546, 5.8906);
return 1;
}public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}public OnPlayerText(playerid, text[])
{
return 1;
}public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
return 1;
}
return 0;
}public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, 1541.9686, -1675.9211, 13.5536);
DisablePlayerCheckpoint(playerid);
return 1;
}public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
} -
hmm... naja.
bin ja noch anfänger. tut mir leid. -
keine ahnung.
-
Hier:
#include <a_samp>
#pragma tabsize 0
#if defined FILTERSCRIPTpublic OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}public OnFilterScriptExit()
{
return 1;
}#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}#endif
public OnGameModeInit()
{
return 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerConnect(playerid)
{
SetPlayerMapIcon(playerid, 55, 771.4431, -1356.8959, 13.5327, 13.5327, 0);
return 1;
}Aber eine Warnung kommt:
warning 213: tag mismatch
-
@user:
Ich habe mir dein Script nicht genau angeschaut aber ca. so:
public OnPlayerDeath(playerid,killerid,reason)
{
if(gTeam[playerid] == gTeam[killerid]) // halt hier deine Teamdefinierung rein ;)
{
SetPlayerPos(killerid,x,y,z); // Knast
GameTextForPlayer(killerid,"~rWillkommen im Knast! Kein Teamkill!",6000,1);
}
return 1;
}Was soll ich bei"// halt hier deine Teamdefinierung rein );" reinschreiben??