GetPlayerSkin problem. Help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerSkin problem. Help! (
/showthread.php?tid=498353)
GetPlayerSkin problem. Help! -
GrassHopper101 - 03.03.2014
I don't understand why this is an "invalid Function."
Help me out please, I'm sure you will be able to figure out what my idea is here.
Код:
public OnPlayerSpawn(playerid)
{
if GetPlayerSkin(playerid) = 283;
{
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,24,20000);
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
}
else
{
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
}
return 1;
}
Thanks 4 help.
Re: GetPlayerSkin problem. Help! -
GrassHopper101 - 03.03.2014
The GetPlayerSkin part appearently is a problem..
Re: GetPlayerSkin problem. Help! -
SwisherSweet - 03.03.2014
pawn Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 283)
{
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,24,20000);
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
}
else
{
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
}
return 1;
}
Re: GetPlayerSkin problem. Help! -
GrassHopper101 - 03.03.2014
How do I delete this topic, I figured it out, sorry 4 waste of time.
Re: GetPlayerSkin problem. Help! -
SwisherSweet - 03.03.2014
You figured it out because of me lol -_- You Welcome -_-
Re: GetPlayerSkin problem. Help! -
GrassHopper101 - 03.03.2014
Yes, it was because of you.