This repository was archived by the owner on Feb 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
SetPlayerGameSpeed
GtakillerIV edited this page Dec 17, 2014
·
2 revisions
Sets a player's game speed

playeridThe player's id.
float:speedThe speed of the game.
0 if the player is not connectedCMD:setgamespeed(playerid, params[])
{
//If the player has the SA-MP+ plugin installed
if(IsUsingSAMPP(playerid))
{
new Float:speed;
if(sscanf(params, "f", speed)) return SendClientMessage(playerid, -1, "Correct usage: /setgamespeed speed");
SetPlayerGameSpeed(playerid, speed);
}
//If not
else
{
SendClientMessage(playerid, -1, "You need the SA-MP+ plugin");
}
return 1;
}See Also