- 0
Problema Job
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
marius11
Problema intalnita (descriere):Cand dai /find nu se tine de pe player si ramane Checkpoint il locul in care a fost ultima data trebuie sa dai intruna find
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:find(playerid, params[])
{
new targetID;
if(sscanf(params, "u", targetID)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/find [playerid]");
{
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 || jobVariables[playerVariables[playerid][pJob]][jJobType] == 2 || groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 12)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(targetID, name, MAX_PLAYER_NAME);
FindTime[playerid] = 10000;
PlayerFind[playerid] = targetID;
new Float: x, Float: y, Float: z;
GetPlayerPos(targetID,x,y,z);
new Float: fDistance = GetPlayerDistanceFromPoint(playerid, x,y,z);
format(szMessage, 256, "Server has set you a checkpoint to %s (%d). Distance: %.0f meters.",name, targetID, fDistance);
SCM(playerid,COLOR_YELLOW, szMessage);
SetPlayerCheckpoint(playerid,x,y,z,3.0);
}
}
return 1;
}
forward AttachTrailTruck(trailer, car);
public AttachTrailTruck(trailer, car)
{
AttachTrailerToVehicle(trailer, car);
return 1;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur? Nu stiu ce sa ii fac sa se tina dupa player
5 answers to this question
Recommended Posts