Posts: 144
Threads: 16
Joined: Apr 2017
Reputation:
0
i am working on freeroam server, so i want all skins to be merged in one line means:
AddPlayerClass(0 .. 311,410.6863,2532.9053,19.1484,142.4334,0,0,0,0,0,0); // playerspawn
i mean any way like this so i can have all skins on the spawn selection place?
Posts: 1,266
Threads: 6
Joined: Oct 2014
use loop
PHP код:
for(new i = 0; i < 312; i++)
{
AddPlayerClass(i,410.6863,2532.9053,19.1484,142.4334,0,0,0,0,0,0); // playerspawn
}
Posts: 1,266
Threads: 6
Joined: Oct 2014
Quote:
Originally Posted by StevenLV
where to put this?
|
under ongamemodeinit, .-. the same area you put the old AddPlayerClass
Posts: 144
Threads: 16
Joined: Apr 2017
Reputation:
0
i wanted to ask, do u know how to set that if i /stunt so it say "usage: /stunt <1/2>"
Posts: 1,266
Threads: 6
Joined: Oct 2014
You may use sscanf or directly params.
PHP код:
CMD:stunt(playerid, params[])
{
if(isnull(params))
{
SendClientMessage(playerid, -1,"Usage: /stunt <1/2>");
}
else
{
if(params[0] == '1')
{
// /stunt 1 used
}
else if(params[0] == '2')
{
// /stunt 2 used
}
else
{
// error message
}
}
return 1;
}