27.01.2010, 15:53
I've just swapped over to zcmd, and all my other commands work, but this one doesn't:
It tells me I've spawned for instance VID 520(a hydra) but it doesn't actually spawn anything. I've tried different respawn times but that doesn't seem to work. Is there a max or min?
pawn Код:
zcmd(v, playerid, params[])
{
new vehicle, string[128];
if (!sscanf(params, "i", vehicle))
{
new Float:x,Float:y, Float:z, Float:angle;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,angle);
CreateVehicle(vehicle, x, y, z, angle, 0, 0, 9999999999);
format(string,sizeof(string),"You have spawned VID %d at your location.",vehicle);
SendClientMessage(playerid, COLOR_GREEN, string);
}
else return SendClientMessage(playerid,COLOR_RED,"USAGE: /v [vehicleid]");
return 1;
}