---
title: "GetPlayerTrainSpeed | open.mp"
description: "دریافت سرعت قطار بازیکن."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GetPlayerTrainSpeed
language: fa
---

# GetPlayerTrainSpeed

هشدار

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## توضیحات

دریافت سرعت قطار بازیکن.

## پارامترها

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکن. |

## مثال‌ها

```c
new Float:speed = GetPlayerTrainSpeed(playerid);
SendClientMessage(playerid, 0xFFFF00FF, "The speed of your train: %f", speed);
```

## توابع مرتبط

-   [GetVehicleTrainSpeed](https://omp.itsneufox.com/fa/docs/scripting/functions/GetVehicleTrainSpeed): دریافت سرعت قطار.
