if(strcmp(cmd,"/test",true)==0)
{
new test;
test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
if(gTeam[playerid] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,30,2091.7006835938, -1753.1389160156, 15.178255081177))
{
MoveObject(test,2091.7006835938, -1753.1389160156, 30.178255081177,5);
}
else
{
SendClientMessage(playerid,RED2,"You are too far!");
}
}
else
{
SendClientMessage(playerid,GREEN,"You can't do that in your team!");
}
return 1;
}
CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
This line is already there |
//at the list of all you're new's (which i assume you have?)
new test;
test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
//at OnGameModeInIt or if its a FS OnFilterScriptInIt
if(strcmp(cmd,"/test",true)==0)
{
if(gTeam[playerid] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,30,2091.7006835938, -1753.1389160156, 15.178255081177))
{
MoveObject(test,2091.7006835938, -1753.1389160156, 30.178255081177,5);
}
else
{
SendClientMessage(playerid,RED2,"You are too far!");
}
}
else
{
SendClientMessage(playerid,GREEN,"Your can't do that in your team!");
}
return 1;
}
new test;
test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);