20.11.2011, 01:51
Here is a couple commands hope they help
First command is a count script its very good for Death MAtch or Racing
}
if (strcmp(cmd, "cd", true) == 0 || strcmp(cmd, "countdown", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(IsPlayerConnected(playerid))
{
RaceCD(playerid);
}
return 1;
}
public RaceCD(playerid)
{
{
SetTimer("CDe",1000,0);
SetTimer("CDt",2000,0);
SetTimer("CDo",3000,0);
SetTimer("CDg",4000,0);
}
}
public CDo()
{
{
GameTextForAll("~b~[~p~1~t~23~b~ ]");
mulimessageall(lightgreen,"ONE.1");
}
}
public CDt()
{
{
GameTextForAll("~b~[~t~1~p~2~t~3~b~ ]");
mulimessageall(lightgreen,"TWO..2");
}
}
public CDe()
{
{
GameTextForAll("~b~[~t~12~p~3~b~ ]");
mulimessageall(lightgreen,"THREE...3");
}
}
public CDg()
{
{
GameTextForAll("~b~[~t~GO~b~ ]");
mulimessageall(lightgreen,"GO!");
}
}
Second command is a goto switch on or off very good if you dont want people to tele to you
new Goto0[MAX_PLAYERS];
}
if (strcmp(cmd, "!goto", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
mulimessage(playerid,blue, "Usage: !goto [Player]");
return 1;
}
if(IsPlayerConnected(playerid))
{
new plr;
new Float: x, Float:y, Float:z;
if (Goto0[playerid] != 0) return SendClientMessage(playerid,lightgreen, "Sorry that player has turned goto to off");
plr = FindPlayerIDFromString(tmp);
GetPlayerPos(plr,x,y,z);
SetPlayerPos(playerid,x,y + 1.0,z,0,0);
}
return 1;
}
else if (strcmp(cmd, "!got0", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
mulimessage(playerid,blue, "Usage: !got0 [on/off]");
return 1;
}
else if (strcmp(tmp, "on", true) == 0)
{
tmp = strtok(cmdtext, idx);
Goto0[playerid] = 0;
mulimessage(playerid,orange,"Goto mode is switched to on");
}
else if (strcmp(tmp, "off", true) == 0)
{
tmp = strtok(cmdtext, idx);
Goto0[playerid] = 1;
mulimessage(playerid,orange,"Goto mode is switched to off");
return 1;
IF YOU ARE GOOD SCRIPTTER YOU CAN PUT THEM IN PLACE BUT IF NOT I WILL UPLOAD A DOWNLOAD LINK THANK YOU
First command is a count script its very good for Death MAtch or Racing
}
if (strcmp(cmd, "cd", true) == 0 || strcmp(cmd, "countdown", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(IsPlayerConnected(playerid))
{
RaceCD(playerid);
}
return 1;
}
public RaceCD(playerid)
{
{
SetTimer("CDe",1000,0);
SetTimer("CDt",2000,0);
SetTimer("CDo",3000,0);
SetTimer("CDg",4000,0);
}
}
public CDo()
{
{
GameTextForAll("~b~[~p~1~t~23~b~ ]");
mulimessageall(lightgreen,"ONE.1");
}
}
public CDt()
{
{
GameTextForAll("~b~[~t~1~p~2~t~3~b~ ]");
mulimessageall(lightgreen,"TWO..2");
}
}
public CDe()
{
{
GameTextForAll("~b~[~t~12~p~3~b~ ]");
mulimessageall(lightgreen,"THREE...3");
}
}
public CDg()
{
{
GameTextForAll("~b~[~t~GO~b~ ]");
mulimessageall(lightgreen,"GO!");
}
}
Second command is a goto switch on or off very good if you dont want people to tele to you
new Goto0[MAX_PLAYERS];
}
if (strcmp(cmd, "!goto", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
mulimessage(playerid,blue, "Usage: !goto [Player]");
return 1;
}
if(IsPlayerConnected(playerid))
{
new plr;
new Float: x, Float:y, Float:z;
if (Goto0[playerid] != 0) return SendClientMessage(playerid,lightgreen, "Sorry that player has turned goto to off");
plr = FindPlayerIDFromString(tmp);
GetPlayerPos(plr,x,y,z);
SetPlayerPos(playerid,x,y + 1.0,z,0,0);
}
return 1;
}
else if (strcmp(cmd, "!got0", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
mulimessage(playerid,blue, "Usage: !got0 [on/off]");
return 1;
}
else if (strcmp(tmp, "on", true) == 0)
{
tmp = strtok(cmdtext, idx);
Goto0[playerid] = 0;
mulimessage(playerid,orange,"Goto mode is switched to on");
}
else if (strcmp(tmp, "off", true) == 0)
{
tmp = strtok(cmdtext, idx);
Goto0[playerid] = 1;
mulimessage(playerid,orange,"Goto mode is switched to off");
return 1;
IF YOU ARE GOOD SCRIPTTER YOU CAN PUT THEM IN PLACE BUT IF NOT I WILL UPLOAD A DOWNLOAD LINK THANK YOU