Can you add this for me - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can you add this for me (
/showthread.php?tid=174924)
Can you add this for me -
zack3021 - 07.09.2010
I want to add this:
Код:
if (GetPlayerSkin(playerid))return SendClientMessage(playerid, 0xFF0000AA, "You cannot open this door!!");
}
To this but i cant seem to get them to work, guys can you plz help.
Код:
{
if (strcmp("/door", cmdtext, true, 10) == 0)
{
if(dooropen == 1)
{
dooropen = 0;
new pskin = GetPlayerSkin(playerid);
if(pskin == 265 || pskin == 266 || pskin == 267 || pskin == 280 || pskin == 281 || pskin == 284 || pskin == 285 || pskin == 286 || pskin == 287 || pskin == 288)
MoveObject(door1,2706.1520996094, 646.59985351563, 13.72029876709,5.0);
SendClientMessage(playerid,0xFFFF00FF,"You have just opened the Office Door");
return 1;
}
else
{
dooropen = 1;
MoveObject(door1,2706.1508789063, 646.59497070313, 9.9702987670898,3.0);
SendClientMessage(playerid,0xFFFF00FF,"You have just closed the Office Door");
}
}
return 0;
}
AW: Can you add this for me -
GooMan - 07.09.2010
Код:
if (strcmp("/door", cmdtext, true, 10) == 0)
{
if (GetPlayerSkin(playerid))return SendClientMessage(playerid, 0xFF0000AA, "You cannot open this door!!");
{
if(dooropen == 1)
{
dooropen = 0;
new pskin = GetPlayerSkin(playerid);
if(pskin == 265 || pskin == 266 || pskin == 267 || pskin == 280 || pskin == 281 || pskin == 284 || pskin == 285 || pskin == 286 || pskin == 287 || pskin == 288)
MoveObject(door1,2706.1520996094, 646.59985351563, 13.72029876709,5.0);
SendClientMessage(playerid,0xFFFF00FF,"You have just opened the Office Door");
return 1;
}
else
{
dooropen = 1;
MoveObject(door1,2706.1508789063, 646.59497070313, 9.9702987670898,3.0);
SendClientMessage(playerid,0xFFFF00FF,"You have just closed the Office Door");
}
}
}