Ok, schreibe dir mal kurz en code
if(strcmp(cmdtext,"/einnehmen",true) == 0)
{
if(PlayerToPoint(1.0,playerid,-804.4577,1519.2581,27.1172))
{
if(ImPickup[playerid] == false)
{
if(gTeam[playerid] == TEAM_Cops)
{
if(GetPVarInt(playerid, "Einnehmen") == 0)
{
new striiiing[128], naaaaaame[MAX_PLAYER_NAME];
GetPlayerName(playerid, naaaaaame, sizeof(naaaaaame));
format(striiiing, sizeof(striiiing), "* Eingenommen !");
SendClientMessageToAll(0x00FF14FF, striiiing);
SendClientMessage(playerid, 0x828282FF, " jede Minute gibts 1 Punkt für dein Team ! ¢");
new Float:pos[3];
GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
PPickupPos[playerid][X] = pos[0];
PPickupPos[playerid][Y] = pos[1];
PPickupPos[playerid][Z] = pos[2];
PPickupPos[playerid][timer3] = SetTimerEx("Poscheck",3000,true,"i",playerid);
PPickupPos[playerid][timer4] = SetTimerEx("ScoreTimer",43000,false,"i",playerid);
ImPickup[playerid] = true;
SetPVarInt(playerid, "Einnehmen", "1");
SetTimerEx("unSetEinnehmen",60000,false,"i",playerid);
}
else
{
//deine nachricht wenn er nichtmehr einnehmen kann.
}
}
}
forward unSetEinnehmen(playerid);
public unSetEinnehmen(playerid)
{
SetPVarInt(playerid, "Einnehmen", "0");
}
Info ungetestet :9 kurz und schnell geschrieben