Quote:
|
Originally Posted by Salaisuus
Whats the
if ( strequals( #p(1),drop )
part for exactly?
I cant get it to work, I cant get anything to work. You people confuse me.

|
It goes in the serverside part of the script (before //#CLIENTSIDE)
For example,
NPC Code:
If (actionserverside) {
if (strequals(#p(1),drop)) {
putnpc2 playerx,playery,{ //script or class (like join CLASSNAME);};
}
}
In the clientside part it would just be:
NPC Code:
triggeraction 0,0,serverside,WEAPONNAME,drop;
NOTE: This will only work for weapons. And you don't NEED to use a parameter for this one, just that you asked so I answered

.