28.12.2012, 00:53
(
Последний раз редактировалось Fernado Samuel; 04.10.2013 в 18:04.
)
Removed
CMD:callcar(playerid,params[])
{
new tmp[256], Index;
new Float:plocx,Float:plocy,Float:plocz;
tmp = strtok(params,Index);
if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /callcar [ID]");
new vidd = strval(params);
new prName[MAX_PLAYER_NAME];
GetPlayerName(playerid, prName, MAX_PLAYER_NAME);
if(strcmp(vInfo[OwnedVeh(vidd)][vOwner], prName, true)==0)
{
GetPlayerPos(playerid, plocx, plocy, plocz);
SetVehiclePos(carid,plocx,plocy+4, plocz);
SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "This is not your vehicle!");
}
return 1;
}