11.04.2011, 08:39
(
Последний раз редактировалось Mean; 14.04.2011 в 09:37.
)
If you want to use spaces ( /call hydra ) I think you MUST use:
pawn Код:
if(strcmp(cmdtext, "/call", true) == 0)
{
if( !strcmp( cmdtext[ 6 ], "hydra", true, 5 ) )
{
if(IsPlayerInRangeOfPoint(playerid, 7, 2728.0461,-2302.7786,16.5892))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new hydra = AddStaticVehicleEx(520, x, y, z, 0, 1, 1, 240);
return PutPlayerInVehicle(playerid, hydra, 0);
}
}
else return SendClientMessage( playerid, 0xAAAAAA, "USAGE: /call hydra" );
}