Quote:
Originally Posted by KuJi
PHP Code:
function onPlayerLogin(temp.plyr)
{
}
would work in any database npc.. and even in weapons/scripts. (clientsided aswell)
ex:
PHP Code:
function onPlayerLogin(temp.plyr)
{
if (temp.plyr != NULL)
{
player.chat = format("%s has logged on!", temp.plyr); // I think?
}
}
|
PHP Code:
function onPlayerLogin(pl) {
if(pl.account != NULL) {
player.chat = format("%s has logged on!", pl.account);
}
}
is the proper way to do it