/exit
#16

pawn Код:
new callmechanic=999;
forward CP(playerid);
//--------------------------------------------------------------
if(strcmp(cmd, "/acceptcall", true) == 0)
{
    if(callmechanic==999) return SendClientMessage(playerid, 0xFF0080FF, "No one need your help!");
    SendClientMessage(playerid, 0xFF0080FF, "You accepted the call, you have 40seconds to be there.");
    new iStr[128];
    format(iStr, sizeof(iStr), "%s have accepted your call.");
    SendClientMessage(playerid, 0xFF0080FF, iStr);
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(callmechanic, X, Y, Z);
    SetPlayerCheckpoint(playerid,X,Y,Z,5.0);
    SetTimerEx("CP", 40000, 0, "i", playerid);
    callmechanic=999;
    return 1;
}
//
if(strcmp(cmd, "/callmechanic", true) == 0)
{
    new iStr[128];
    format(iStr, sizeof(iStr), "%s need a mechanic, use /acceptcall.");
    SendClientMessageToAll(0xFF0080FF, iStr);
    callmechanic = playerid;
    return 1;
}
//--------------------------------------------------------------
public CP(playerid)
{
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, 0xFF0080FF, "Time ended.");
    return 1;
}
You'll need to change somethings from it.
Reply


Messages In This Thread
/exit - by Gangasta300 - 09.04.2011, 16:44
Re: /exit - by Shelby - 09.04.2011, 16:47
Re: /exit - by Gangasta300 - 09.04.2011, 16:52
Re: /exit - by Shelby - 09.04.2011, 17:01
Re: /exit - by Gangasta300 - 09.04.2011, 17:02
Re: /exit - by Njix - 09.04.2011, 17:03
Re: /exit - by Shelby - 09.04.2011, 17:04
Re: /exit - by Njix - 09.04.2011, 17:06
Re: /exit - by misho1 - 09.04.2011, 17:09
Re: /exit - by Gangasta300 - 09.04.2011, 17:09
Re: /exit - by Gangasta300 - 09.04.2011, 17:18
Re: /exit - by Shelby - 09.04.2011, 17:24
Re: /exit - by Gangasta300 - 09.04.2011, 17:27
Re: /exit - by Shelby - 09.04.2011, 17:37
Re: /exit - by Gangasta300 - 09.04.2011, 17:43
Re: /exit - by Shelby - 09.04.2011, 17:53
Re: /exit - by Njix - 09.04.2011, 17:56
Re: /exit - by Gangasta300 - 09.04.2011, 17:56
Re: /exit - by Njix - 09.04.2011, 17:59
Re: /exit - by Gangasta300 - 09.04.2011, 18:03
Re: /exit - by Gangasta300 - 09.04.2011, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)