20.07.2015, 03:45
Can somone please try to help me with this, I started it and cant figure it out...
Код:
#include <zcmd>
new Float: teleportCoordinates[MAX_PLAYERS][3], hasSetTeleport[MAX_PLAYERS];
{
hasSetTeleport[playerid] = 0;
return 1;
}
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
if(IsPlayerAdmin(playerid))
{
teleportCoordinates[playerid][0] = fX, teleportCoordinates[playerid][1] = fY, teleportCoordinates[playerid][2] = fZ;
hasSetTeleport[playerid] = 1;
}
return 1;
}
COMMAND:maptp(playerid, params[])
{
if(!IsPlayerAdmin(playerid) || !hasSetTeleport[playerid]) return 1;
SetPlayerPos(playerid, teleportCoordinates[playerid][0], teleportCoordinates[playerid][1], teleportCoordinates[playerid][2]);
return 1;
}


