02.10.2010, 14:44
Quote:
CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
This line is already there |
pawn Код:
//at the list of all you're new's (which i assume you have?)
new test;
pawn Код:
test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);
//at OnGameModeInIt or if its a FS OnFilterScriptInIt
pawn Код:
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;
}
pawn Код:
new test;
test = CreateObject(980, 2091.7006835938, -1753.1389160156, 15.178255081177, 0, 0, 0);