07.02.2010, 00:12
pawn Код:
dcmd_open(playerid, params[])
{
if(strcmp(params,"lvpd",true) == 0) return SendClientMessage(playerid,0xFF0000FF,"Usage: /open [gate]");
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 2294.230713, 2499.273682, 5.752781))
{
MoveObject(lvgate1,2294.230713, 2507.217041, 5.752781,2);
SetTimer("LVGates1",9000,0);
}
else
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 2334.719971, 2443.472900, 8.230819))
{
MoveObject(lvgate2,2330.758057, 2436.558838, 8.230819,2);
SetTimer("LVGates2",9000,0);
}
}
}
}
return 1;
}
If i type /open, It sends usage, If i type /open lvpd, It sends usage,
But if i type /open isjdfioujs or anything /open sodfjso just anything after /open, It will open,
Why?