I will give a 30 day rapidshare premium to who helps me
#1

Since nobody wants to do a whole script for me and i don't have time to learn scripting i decided to give to who makes my very simple script a 30 day rapidshare.com premium account, you can use it to download with the highest speed a lot of goodies or sell it, do whatever you want with it

I will give the prize when the script is working 100% and react how i want.

The script is easy for a lot of you but not for me So please help me and i will help you


here is what i want it to do:
Quote:

Commands:
/tag "playerid" (done by anybody, it should be active again when the "tagged player" left the server or died)
/tag off (done by anybody except the one that is tagged)

Only one tagged player at a time. When this is activated it should show a message in the lower part of the screen the message: "%s is the tagged player, go find him." (and even better his car should be colored yellow or add a distinctive, clearly visible item on the car, but restore the original color or a dim one after he is no longer tagged)

The tagged player should run after the others to catch them, and when he touches somebody, that player should become the new tagged person.
If the player exits vehicle, he should still be it until he dies.

I would like to thank cj101 for his help
Also i would require a simple tutorial to make the server since i had trouble with commands.


Here is some source code, feel free to use it or write it from scratch

Код:
#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	new TaggedMatch;
new TaggedPlayer;
new Float: TPX;
new Float: TPY;
new Float: TPZ;

	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	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)
{
	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)
	{
		// Do something here
		return 1;
	}
	return 0;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

forward public Check(playerid)

{
#define COLOR_YELLOW 0xFFFF00AA
 if(PlayerToPoint(1, playerid, TPX,TPY,TPZ)
 {
 TaggedPlayer = 0;
 SendClientMessageToAll(COLOR_YELLOW,"The tagged player was found.");
 }
return 1;
}

dcmd_tagplayer(playerid,params[])
{
	new tmp[300], Index;
    tmp = strtok(params,Index);
	new id = strval(tmp);

	if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"That Player Is Not Connected");
    GetPlayerPos(id,TPX,TPY,TPZ);
    new string[256],pName[90];
    GetPlayerName(id,pName,90);
    format(string, sizeof(string), "%s is the tagged player, go find him.",pName);
    SendClientMessageToAll(,string);
    TaggedPlayer = id;


	return 1; }

public OnPlayerExitedMenu(playerid)
{
	return 1;
}
Reply
#2

what does /tag off do?
Reply
#3

Quote:
Originally Posted by Battleskull
what does /tag off do?
/tag off ends the tag game (the script goes off [meaning the tagged player car color becomes as it was before or if not possible a dim color], until /tag "playerid" is typed, then the script becomes active again) in case we get bored or feel pity for the tag player who is unable to catch us and we tag a new player thus starting a new game.

It's one of the childhood funny games we played "Tag, you're it!", but this time with cars

I hope everything is clear now, if not ask me

Thank you
Reply
#4

hmm.. don't you think it's to easy for a 30 day membership? I could do the tag thing if you want for free. add me on skype spike1234555 or msn ignas127@hotmail.com
Reply
#5

Quote:
Originally Posted by Thanatos
hmm.. don't you think it's to easy for a 30 day membership? I could do the tag thing if you want for free. add me on skype spike1234555 or msn ignas127@hotmail.com
GOD (or in who you believe) bless you!

I can't believe i can still find good people these days like you and cj101
Reply
#6

This belongs in the script request thread regardless of whether you found someone to do it for you or not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)